#3142
polybius
Dându-se un șir de caractere, să se cripteze/decripteze șirul dat folosind un tabel polybius
.
Problema | polybius | Operații I/O |
polybius.in /polybius.out
|
---|---|---|---|
Limita timp | 0.05 secunde | Limita memorie |
Total: 2 MB
/
Stivă 1 MB
|
Id soluție | #53993252 | Utilizator | |
Fișier | polybius.cpp | Dimensiune | 793 B |
Data încărcării | 17 Noiembrie 2024, 11:23 | Scor / rezultat | Eroare de compilare |
polybius.cpp: In function 'int main()': polybius.cpp:9:5: error: reference to 'cin' is ambiguous cin >> cer; ^ polybius.cpp:3:10: note: candidates are: std::ifstream cin ifstream cin("polybius.in"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from polybius.cpp:1: /usr/include/c++/4.8/iostream:60:18: note: std::istream std::cin extern istream cin; /// Linked to standard input ^ polybius.cpp:11:5: error: reference to 'cin' is ambiguous cin >> a; ^ polybius.cpp:3:10: note: candidates are: std::ifstream cin ifstream cin("polybius.in"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from polybius.cpp:1: /usr/include/c++/4.8/iostream:60:18: note: std::istream std::cin extern istream cin; /// Linked to standard input ^ polybius.cpp:20:5: error: reference to 'cin' is ambiguous cin.get(); ^ polybius.cpp:3:10: note: candidates are: std::ifstream cin ifstream cin("polybius.in"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from polybius.cpp:1: /usr/include/c++/4.8/iostream:60:18: note: std::istream std::cin extern istream cin; /// Linked to standard input ^ polybius.cpp:24:15: error: reference to 'cin' is ambiguous while(cin >> a >> b) ^ polybius.cpp:3:10: note: candidates are: std::ifstream cin ifstream cin("polybius.in"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from polybius.cpp:1: /usr/include/c++/4.8/iostream:60:18: note: std::istream std::cin extern istream cin; /// Linked to standard input ^ polybius.cpp:25:13: error: reference to 'cout' is ambiguous cout << mat[a-'0'][b-'0']; ^ polybius.cpp:4:10: note: candidates are: std::ofstream cout ofstream cout("polybius.out"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from polybius.cpp:1: /usr/include/c++/4.8/iostream:61:18: note: std::ostream std::cout extern ostream cout; /// Linked to standard output ^ polybius.cpp:32:15: error: reference to 'cin' is ambiguous while(cin >> ch) ^ polybius.cpp:3:10: note: candidates are: std::ifstream cin ifstream cin("polybius.in"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from polybius.cpp:1: /usr/include/c++/4.8/iostream:60:18: note: std::istream std::cin extern istream cin; /// Linked to standard input ^ polybius.cpp:33:17: error: reference to 'cout' is ambiguous cout << X[ch-'A']; ^ polybius.cpp:4:10: note: candidates are: std::ofstream cout ofstream cout("polybius.out"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from polybius.cpp:1: /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 polybius 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ă.