#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 | #51464801 | Utilizator | |
Fișier | permcirc.cpp | Dimensiune | 821 B |
Data încărcării | 21 Iunie 2024, 21:43 | Scor / rezultat | Eroare de compilare |
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: std::ifstream cin ifstream cin("dmax.in"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from permcirc.cpp:1: /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: std::ifstream cin ifstream cin("dmax.in"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from permcirc.cpp:1: /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: std::ofstream cout ofstream cout("dmax.out"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from permcirc.cpp:1: /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ă.