#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 | #47143921 | Utilizator | |
Fișier | adfgx.cpp | Dimensiune | 2.27 KB |
Data încărcării | 04 Decembrie 2023, 17:53 | Scor / rezultat | 0 puncte |
adfgx.cpp: In function 'void cautare(int)': adfgx.cpp:32:27: warning: array subscript has type 'char' [-Wchar-subscripts] sir[y][++sir[y][0]]=adfgx[i]; ^ adfgx.cpp:33:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (sir[y][0]==strlen(cheie)) y++; ^ adfgx.cpp:34:27: warning: array subscript has type 'char' [-Wchar-subscripts] sir[y][++sir[y][0]]=adfgx[j]; ^ adfgx.cpp:35:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (sir[y][0]==strlen(cheie)) y++; ^ adfgx.cpp: In function 'void cod()': adfgx.cpp:53:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int j=1;j<=strlen(cheie);j++) ^ adfgx.cpp: In function 'void decod()': adfgx.cpp:66:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(strlen(p)>maxi) maxi=strlen(p); ^ adfgx.cpp:71:56: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int j=0;j<maxi;j++) for(int i=1;i<=strlen(cheie);i++) ^ adfgx.cpp: In function 'void decautare(int, int)': adfgx.cpp:47:19: warning: 'y' may be used uninitialized in this function [-Wmaybe-uninitialized] fout<<alf[x][y]; ^ adfgx.cpp:47:19: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized] adfgx.cpp: In function 'void decod()': adfgx.cpp:81:26: warning: 'Y' may be used uninitialized in this function [-Wmaybe-uninitialized] decautare(X,Y); ^ adfgx.cpp:81:26: warning: 'X' may be used uninitialized in this function [-Wmaybe-uninitialized]
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
0 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
1 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
2 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
3 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
4 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
5 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
6 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
7 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
8 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
9 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
Punctaj total | 0 |
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ă.