#961
Criptare
Adminul unei rețelei de n*n
calculatoare așezate sub forma unei matrici n
linii și n
coloane dorește să cripteze calculatoarele pentru a securiza rețeaua.
Problema | Criptare | Operații I/O |
criptare.in /criptare.out
|
---|---|---|---|
Limita timp | 0.3 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #53453831 | Utilizator | |
Fișier | criptare.cpp | Dimensiune | 1.39 KB |
Data încărcării | 31 Octombrie 2024, 15:18 | Scor / rezultat | Eroare de compilare |
criptare.cpp: In function 'int main()': criptare.cpp:23:5: error: reference to 'cin' is ambiguous cin >> n; ^ criptare.cpp:6:10: note: candidates are: std::ifstream cin ifstream cin("criptare.in"); ^ In file included from criptare.cpp:1:0: /usr/include/c++/4.8/iostream:60:18: note: std::istream std::cin extern istream cin; /// Linked to standard input ^ criptare.cpp:27:13: error: reference to 'cin' is ambiguous cin >> a[i][j]; ^ criptare.cpp:6:10: note: candidates are: std::ifstream cin ifstream cin("criptare.in"); ^ In file included from criptare.cpp:1:0: /usr/include/c++/4.8/iostream:60:18: note: std::istream std::cin extern istream cin; /// Linked to standard input ^ criptare.cpp:47:9: error: reference to 'cout' is ambiguous cout << L_count << '\n'; ^ criptare.cpp:7:10: note: candidates are: std::ofstream cout ofstream cout("criptare.out"); ^ In file included from criptare.cpp:1:0: /usr/include/c++/4.8/iostream:61:18: note: std::ostream std::cout extern ostream cout; /// Linked to standard output ^ criptare.cpp:49:9: error: reference to 'cout' is ambiguous cout << C_count << '\n'; ^ criptare.cpp:7:10: note: candidates are: std::ofstream cout ofstream cout("criptare.out"); ^ In file included from criptare.cpp:1:0: /usr/include/c++/4.8/iostream:61:18: note: std::ostream std::cout extern ostream cout; /// Linked to standard output ^ criptare.cpp:60:9: error: reference to 'cout' is ambiguous cout << L[i] << ' ' << C[i] << '\n'; ^ criptare.cpp:7:10: note: candidates are: std::ofstream cout ofstream cout("criptare.out"); ^ In file included from criptare.cpp:1:0: /usr/include/c++/4.8/iostream:61:18: note: std::ostream std::cout extern ostream cout; /// Linked to standard output ^ criptare.cpp:65:13: error: reference to 'cout' is ambiguous cout << L[i] << ' ' << 1 << '\n'; ^ criptare.cpp:7:10: note: candidates are: std::ofstream cout ofstream cout("criptare.out"); ^ In file included from criptare.cpp:1:0: /usr/include/c++/4.8/iostream:61:18: note: std::ostream std::cout extern ostream cout; /// Linked to standard output ^ criptare.cpp:69:13: error: reference to 'cout' is ambiguous cout << 1 << ' ' << C[i] << '\n'; ^ criptare.cpp:7:10: note: candidates are: std::ofstream cout ofstream cout("criptare.out"); ^ In file included from criptare.cpp:1:0: /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 Criptare 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ă.