#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 | #53436094 | Utilizator | |
Fișier | polybius.cpp | Dimensiune | 799 B |
Data încărcării | 30 Octombrie 2024, 14:38 | Scor / rezultat | Eroare de compilare |
polybius.cpp: In function 'int main()': polybius.cpp:12:5: error: reference to 'cin' is ambiguous cin >> cer; ^ polybius.cpp:4: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:14:5: error: reference to 'cin' is ambiguous cin >> a; ^ polybius.cpp:4: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:23:5: error: reference to 'cin' is ambiguous cin.get(); ^ polybius.cpp:4: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:27:15: error: reference to 'cin' is ambiguous while(cin >> a >> b) ^ polybius.cpp:4: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:28:13: error: reference to 'cout' is ambiguous cout << mat[a-'0'][b-'0']; ^ polybius.cpp:5: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:35:15: error: reference to 'cin' is ambiguous while(cin >> ch) ^ polybius.cpp:4: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:36:17: error: reference to 'cout' is ambiguous cout << X[ch-'A']; ^ polybius.cpp:5: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ă.