#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 | #57753020 | Utilizator | |
Fișier | adfgx.cpp | Dimensiune | 3.24 KB |
Data încărcării | 14 Aprilie 2025, 14:00 | Scor / rezultat | Eroare de compilare |
adfgx.cpp: In function 'int main()': adfgx.cpp:9:50: error: expected unqualified-id before 'int' char linie[26], coloana[26], lit, cheie[26], int indexc[26], rez[9999], aux[9999]; ^ adfgx.cpp:16:23: error: expected ':' before ';' token case 0; ^ adfgx.cpp:21:23: error: expected ':' before ';' token case 1; ^ adfgx.cpp:26:23: error: expected ':' before ';' token case 2; ^ adfgx.cpp:31:23: error: expected ':' before ';' token case 3; ^ adfgx.cpp:36:23: error: expected ':' before ';' token case 4; ^ adfgx.cpp:41:24: error: expected ':' before ';' token default; ^ adfgx.cpp:43:35: warning: converting to non-pointer type 'char' from NULL [-Wconversion-null] linie[lit-'a']=NULL; ^ adfgx.cpp:49:23: error: expected ':' before ';' token case 0; ^ adfgx.cpp:54:24: error: expected ':' before ';' token case 1; ^ adfgx.cpp:59:23: error: expected ':' before ';' token case 2; ^ adfgx.cpp:64:23: error: expected ':' before ';' token case 3; ^ adfgx.cpp:69:23: error: expected ':' before ';' token case 4; ^ adfgx.cpp:74:24: error: expected ':' before ';' token default; ^ adfgx.cpp:76:37: warning: converting to non-pointer type 'char' from NULL [-Wconversion-null] coloana[lit-'a']=NULL; ^ adfgx.cpp:83:17: error: 'indexc' was not declared in this scope indexc[cheie[i]-'a']=i+1; ^ adfgx.cpp:88:17: error: 'rez' was not declared in this scope rez[lin][col++]=linie[lit-'a'];//SE ATRIBUIE ADFGX ^ adfgx.cpp:110:1: error: expected '}' at end of input } ^ adfgx.cpp:110:1: error: expected '}' at end of input
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ă.