#3140
a1z26
Să se codeze/decodeze un șir folosind cifrul A1Z26
Problema | a1z26 | Operații I/O |
a1z26.in /a1z26.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 0.1 MB
/
Stivă 0.1 MB
|
Id soluție | #53537502 | Utilizator | |
Fișier | a1z26.cpp | Dimensiune | 459 B |
Data încărcării | 04 Noiembrie 2024, 16:32 | Scor / rezultat | Eroare de compilare |
a1z26.cpp: In function 'int main()': a1z26.cpp:10:5: error: reference to 'cin' is ambiguous cin >> p; ^ a1z26.cpp:4:10: note: candidates are: std::ifstream cin ifstream cin("a1z26.in"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from a1z26.cpp:1: /usr/include/c++/4.8/iostream:60:18: note: std::istream std::cin extern istream cin; /// Linked to standard input ^ a1z26.cpp:14:15: error: reference to 'cin' is ambiguous while(cin >> ch) ^ a1z26.cpp:4:10: note: candidates are: std::ifstream cin ifstream cin("a1z26.in"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from a1z26.cpp:1: /usr/include/c++/4.8/iostream:60:18: note: std::istream std::cin extern istream cin; /// Linked to standard input ^ a1z26.cpp:15:13: error: reference to 'cout' is ambiguous cout << (int) (ch - 'A' + 1) << ' '; ^ a1z26.cpp:5:10: note: candidates are: std::ofstream cout ofstream cout("a1z26.out"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from a1z26.cpp:1: /usr/include/c++/4.8/iostream:61:18: note: std::ostream std::cout extern ostream cout; /// Linked to standard output ^ a1z26.cpp:20:9: error: reference to 'cin' is ambiguous cin >> n; ^ a1z26.cpp:4:10: note: candidates are: std::ifstream cin ifstream cin("a1z26.in"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from a1z26.cpp:1: /usr/include/c++/4.8/iostream:60:18: note: std::istream std::cin extern istream cin; /// Linked to standard input ^ a1z26.cpp:23:13: error: reference to 'cin' is ambiguous cin >> x, cout << (char) (x + 'A' - 1); ^ a1z26.cpp:4:10: note: candidates are: std::ifstream cin ifstream cin("a1z26.in"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from a1z26.cpp:1: /usr/include/c++/4.8/iostream:60:18: note: std::istream std::cin extern istream cin; /// Linked to standard input ^ a1z26.cpp:23:23: error: reference to 'cout' is ambiguous cin >> x, cout << (char) (x + 'A' - 1); ^ a1z26.cpp:5:10: note: candidates are: std::ofstream cout ofstream cout("a1z26.out"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from a1z26.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 a1z26 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ă.