#162
PermCirc
Determinați toate permutările circulare spre stânga ale unui vector dat.
Problema | PermCirc | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #51464804 | Utilizator | |
Fișier | permcirc.cpp | Dimensiune | 816 B |
Data încărcării | 21 Iunie 2024, 21:43 | Scor / rezultat | Eroare de compilare |
permcirc.cpp:3:13: error: variable 'std::ifstream cin' has initializer but incomplete type ifstream cin("dmax.in"); ^ permcirc.cpp:4:14: error: variable 'std::ofstream cout' has initializer but incomplete type ofstream cout("dmax.out"); ^ permcirc.cpp: In function 'void bfs(int)': permcirc.cpp:10:5: error: 'queue' was not declared in this scope queue <int> Q; ^ permcirc.cpp:10:12: error: expected primary-expression before 'int' queue <int> Q; ^ permcirc.cpp:10:12: error: expected ';' before 'int' permcirc.cpp:11:5: error: 'Q' was not declared in this scope Q.push(x); ^ permcirc.cpp: In function 'int main()': permcirc.cpp:27:5: error: reference to 'cin' is ambiguous cin >> n >> m; ^ permcirc.cpp:3:10: note: candidates are: <typeprefixerror>cin ifstream cin("dmax.in"); ^ In file included from permcirc.cpp:1:0: /usr/include/c++/4.8/iostream:60:18: note: std::istream std::cin extern istream cin; /// Linked to standard input ^ permcirc.cpp:30:9: error: reference to 'cin' is ambiguous cin >> x >> y; ^ permcirc.cpp:3:10: note: candidates are: <typeprefixerror>cin ifstream cin("dmax.in"); ^ In file included from permcirc.cpp:1:0: /usr/include/c++/4.8/iostream:60:18: note: std::istream std::cin extern istream cin; /// Linked to standard input ^ permcirc.cpp:36:5: error: reference to 'cout' is ambiguous cout << rez; ^ permcirc.cpp:4:10: note: candidates are: <typeprefixerror>cout ofstream cout("dmax.out"); ^ In file included from permcirc.cpp:1:0: /usr/include/c++/4.8/iostream:61:18: note: std::ostream std::cout extern ostream cout; /// Linked to standard output ^ permcirc.cpp: At global scope: permcirc.cpp:38:5: error: expected unqualified-id before 'return' return 0; ^ permcirc.cpp:39:1: error: expected declaration before '}' token } ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema PermCirc 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ă.