#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 | #34341880 | Utilizator | |
Fișier | a1z26.cpp | Dimensiune | 468 B |
Data încărcării | 29 Ianuarie 2022, 21:02 | Scor / rezultat | Eroare de compilare |
a1z26.cpp:3:13: error: variable 'std::ifstream cin' has initializer but incomplete type ifstream cin("a1z26.in"); ^ a1z26.cpp:4:14: error: variable 'std::ofstream cout' has initializer but incomplete type ofstream cout("a1z26.out"); ^ a1z26.cpp: In function 'int main()': a1z26.cpp:9:5: error: reference to 'cin' is ambiguous cin>>p; ^ a1z26.cpp:3:10: note: candidates are: <typeprefixerror>cin ifstream cin("a1z26.in"); ^ In file included from a1z26.cpp:1:0: /usr/include/c++/4.8/iostream:60:18: note: std::istream std::cin extern istream cin; /// Linked to standard input ^ a1z26.cpp:12:9: error: reference to 'cin' is ambiguous cin.get(); ^ a1z26.cpp:3:10: note: candidates are: <typeprefixerror>cin ifstream cin("a1z26.in"); ^ In file included from a1z26.cpp:1:0: /usr/include/c++/4.8/iostream:60:18: note: std::istream std::cin extern istream cin; /// Linked to standard input ^ a1z26.cpp:13:17: error: reference to 'cin' is ambiguous getline(cin,s); ^ a1z26.cpp:3:10: note: candidates are: <typeprefixerror>cin ifstream cin("a1z26.in"); ^ In file included from a1z26.cpp:1:0: /usr/include/c++/4.8/iostream:60:18: note: std::istream std::cin extern istream cin; /// Linked to standard input ^ a1z26.cpp:14:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0;i<s.length();i++) ^ a1z26.cpp:15:13: error: reference to 'cout' is ambiguous cout<<(int)s[i]-'A'+1<<" "; ^ a1z26.cpp:4:10: note: candidates are: <typeprefixerror>cout ofstream cout("a1z26.out"); ^ In file included from a1z26.cpp:1:0: /usr/include/c++/4.8/iostream:61:18: note: std::ostream std::cout extern ostream cout; /// Linked to standard output ^ a1z26.cpp:19:8: error: reference to 'cin' is ambiguous cin.get(); ^ a1z26.cpp:3:10: note: candidates are: <typeprefixerror>cin ifstream cin("a1z26.in"); ^ In file included from a1z26.cpp:1:0: /usr/include/c++/4.8/iostream:60:18: note: std::istream std::cin extern istream cin; /// Linked to standard input ^ a1z26.cpp:20:8: error: reference to 'cin' is ambiguous cin>>n; ^ a1z26.cpp:3:10: note: candidates are: <typeprefixerror>cin ifstream cin("a1z26.in"); ^ In file included from a1z26.cpp:1:0: /usr/include/c++/4.8/iostream:60:18: note: std::istream std::cin extern istream cin; /// Linked to standard input ^ a1z26.cpp:22:9: error: reference to 'cin' is ambiguous {cin>>x;cout<<(char)(x+'A'-1);} ^ a1z26.cpp:3:10: note: candidates are: <typeprefixerror>cin ifstream cin("a1z26.in"); ^ In file included from a1z26.cpp:1:0: /usr/include/c++/4.8/iostream:60:18: note: std::istream std::cin extern istream cin; /// Linked to standard input ^ a1z26.cpp:22:16: error: reference to 'cout' is ambiguous {cin>>x;cout<<(char)(x+'A'-1);} ^ a1z26.cpp:4:10: note: candidates are: <typeprefixerror>cout ofstream cout("a1z26.out"); ^ In file included from a1z26.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 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ă.