#3616
adfgx
Cifrul ADFGX
este un cifru care folosește o matrice pătratică 5x5
și o cheie
. În matricea pătratică, liniile și coloanele vor fi numerotate cu litere. Avem această matrice ca exemplu.
A D F G X A a b c d e D f g h i j F k l m n o G p q r s t X u v w x y
Problema | adfgx | Operații I/O |
![]() adfgx.in /adfgx.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #51410121 | Utilizator | |
Fișier | adfgx.cpp | Dimensiune | 2.05 KB |
Data încărcării | 13 Iunie 2024, 17:09 | Scor / rezultat | Eroare de compilare |
adfgx.cpp: In function 'int main()': adfgx.cpp:14:5: error: reference to 'cin' is ambiguous cin>>x; ^ adfgx.cpp:5:10: note: candidates are: std::ifstream cin ifstream cin("adfgx.in"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from adfgx.cpp:1: /usr/include/c++/4.8/iostream:60:18: note: std::istream std::cin extern istream cin; /// Linked to standard input ^ adfgx.cpp:17:17: error: reference to 'cin' is ambiguous cin>>a[f][g]; ^ adfgx.cpp:5:10: note: candidates are: std::ifstream cin ifstream cin("adfgx.in"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from adfgx.cpp:1: /usr/include/c++/4.8/iostream:60:18: note: std::istream std::cin extern istream cin; /// Linked to standard input ^ adfgx.cpp:19:5: error: reference to 'cin' is ambiguous cin>>c; ^ adfgx.cpp:5:10: note: candidates are: std::ifstream cin ifstream cin("adfgx.in"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from adfgx.cpp:1: /usr/include/c++/4.8/iostream:60:18: note: std::istream std::cin extern istream cin; /// Linked to standard input ^ adfgx.cpp:20:5: error: reference to 'cin' is ambiguous cin>>m; ^ adfgx.cpp:5:10: note: candidates are: std::ifstream cin ifstream cin("adfgx.in"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from adfgx.cpp:1: /usr/include/c++/4.8/iostream:60:18: note: std::istream std::cin extern istream cin; /// Linked to standard input ^ adfgx.cpp:21:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(k<strlen(m)) ^ adfgx.cpp:31:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(t>=strlen(c)) ^ adfgx.cpp:46:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(t<strlen(c)) ^ adfgx.cpp:48:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(t>=strlen(c)) ^ adfgx.cpp:63:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(t<strlen(c)) ^ adfgx.cpp:75:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(p<=strlen(c)) ^ adfgx.cpp:77:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(p==strlen(c)) ^ adfgx.cpp:86:21: error: reference to 'cout' is ambiguous cout<<b[p]; ^ adfgx.cpp:6:10: note: candidates are: std::ofstream cout ofstream cout("adfgx.out"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from adfgx.cpp:1: /usr/include/c++/4.8/iostream:61:18: note: std::ostream std::cout extern ostream cout; /// Linked to standard output ^ adfgx.cpp:87:13: error: reference to 'cout' is ambiguous cout<<" "; ^ adfgx.cpp:6:10: note: candidates are: std::ofstream cout ofstream cout("adfgx.out"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from adfgx.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 adfgx 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ă.