#2615
CaesarCrypt
Se citește un text. Se cere criptarea/decriptarea acestuia folosind Cifrul Caesar
.
Probleme de Criptografie
Problema | CaesarCrypt | Operații I/O |
caesar.in /dbftbs.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #53866180 | Utilizator | |
Fișier | caesarcrypt.cpp | Dimensiune | 1.62 KB |
Data încărcării | 13 Noiembrie 2024, 15:43 | Scor / rezultat | Eroare de compilare |
caesarcrypt.cpp: In function 'int main()': caesarcrypt.cpp:23:5: error: reference to 'cin' is ambiguous cin.getline(s, 260); ^ caesarcrypt.cpp:5:10: note: candidates are: std::ifstream cin ifstream cin("caesar.in"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from caesarcrypt.cpp:1: /usr/include/c++/4.8/iostream:60:18: note: std::istream std::cin extern istream cin; /// Linked to standard input ^ caesarcrypt.cpp:24:5: error: reference to 'cin' is ambiguous cin >> n; ^ caesarcrypt.cpp:5:10: note: candidates are: std::ifstream cin ifstream cin("caesar.in"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from caesarcrypt.cpp:1: /usr/include/c++/4.8/iostream:60:18: note: std::istream std::cin extern istream cin; /// Linked to standard input ^ caesarcrypt.cpp:25:5: error: reference to 'cin' is ambiguous cin >> cer; ^ caesarcrypt.cpp:5:10: note: candidates are: std::ifstream cin ifstream cin("caesar.in"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from caesarcrypt.cpp:1: /usr/include/c++/4.8/iostream:60:18: note: std::istream std::cin extern istream cin; /// Linked to standard input ^ caesarcrypt.cpp:53:9: error: reference to 'cout' is ambiguous cout << s; ^ caesarcrypt.cpp:6:10: note: candidates are: std::ofstream cout ofstream cout("dbftbs.out"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from caesarcrypt.cpp:1: /usr/include/c++/4.8/iostream:61:18: note: std::ostream std::cout extern ostream cout; /// Linked to standard output ^ caesarcrypt.cpp:77:9: error: reference to 'cout' is ambiguous cout << s; ^ caesarcrypt.cpp:6:10: note: candidates are: std::ofstream cout ofstream cout("dbftbs.out"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from caesarcrypt.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 CaesarCrypt 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ă.