#1834
Memory005
Pentru o mulţime cu n
elemente naturale să se afle câte submulţimi nevide au suma elementelor pară.
Problema | Memory005 | Operații I/O |
memory005.in /memory005.out
|
---|---|---|---|
Limita timp | 0.5 secunde | Limita memorie |
Total: 0.1 MB
/
Stivă 0 MB
|
Id soluție | #54963665 | Utilizator | |
Fișier | memory005.cpp | Dimensiune | 498 B |
Data încărcării | 13 Decembrie 2024, 19:09 | Scor / rezultat | Eroare de compilare |
memory005.cpp:7:13: error: variable 'std::ifstream cin' has initializer but incomplete type ifstream cin("memory005.in"); ^ memory005.cpp:8:14: error: variable 'std::ofstream cout' has initializer but incomplete type ofstream cout("memory005.out"); ^ memory005.cpp: In function 'int main()': memory005.cpp:18:5: error: reference to 'cin' is ambiguous cin >> n; ^ memory005.cpp:7:10: note: candidates are: <typeprefixerror>cin ifstream cin("memory005.in"); ^ In file included from memory005.cpp:1:0: /usr/include/c++/4.8/iostream:60:18: note: std::istream std::cin extern istream cin; /// Linked to standard input ^ memory005.cpp:21:9: error: reference to 'cin' is ambiguous cin >> x; ^ memory005.cpp:7:10: note: candidates are: <typeprefixerror>cin ifstream cin("memory005.in"); ^ In file included from memory005.cpp:1:0: /usr/include/c++/4.8/iostream:60:18: note: std::istream std::cin extern istream cin; /// Linked to standard input ^ memory005.cpp:24:18: error: reference to 'cout' is ambiguous if(cnt == 0) cout << (put(n) - 1) % MOD; ^ memory005.cpp:8:10: note: candidates are: <typeprefixerror>cout ofstream cout("memory005.out"); ^ In file included from memory005.cpp:1:0: /usr/include/c++/4.8/iostream:61:18: note: std::ostream std::cout extern ostream cout; /// Linked to standard output ^ memory005.cpp:25:10: error: reference to 'cout' is ambiguous else cout << (put(n - 1) - 1) % MOD; ^ memory005.cpp:8:10: note: candidates are: <typeprefixerror>cout ofstream cout("memory005.out"); ^ In file included from memory005.cpp:1:0: /usr/include/c++/4.8/iostream:61:18: note: std::ostream std::cout extern ostream cout; /// Linked to standard output ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Memory005 face parte din prima categorie. Soluția propusă de tine va fi evaluată astfel:
Suma punctajelor acordate pe testele utilizate pentru verificare este 100. Astfel, soluția ta poate obține cel mult 100 de puncte, caz în care se poate considera corectă.