#3808
ADFGVX
Să se cripteze sau să se decripteze un mesaj folosind cifrul ADFGVX.
cifrul ADFGVX
Problema | ADFGVX | Operații I/O |
![]() adfgvx.in /adfgvx.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #57832856 | Utilizator | |
Fișier | adfgvx.cpp | Dimensiune | 1.28 KB |
Data încărcării | 24 Aprilie 2025, 12:35 | Scor / rezultat | 10 puncte |
adfgvx.cpp: In function 'int main()': adfgvx.cpp:45:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(l=0; l<strlen(mesaj); l++) ^ adfgvx.cpp:57:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(l=0; l<strlen(cheie); l++) ^ adfgvx.cpp:59:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(l=0; l<strlen(cheie)-1; l++) ^ adfgvx.cpp:60:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(k=l+1; k<strlen(cheie); k++) ^ adfgvx.cpp:69:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(l=0; l<strlen(cheie); l++) ^ adfgvx.cpp: In function 'char cod(int)': adfgvx.cpp:29:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ adfgvx.cpp: In function 'int main()': adfgvx.cpp:34:6: warning: 'i' may be used uninitialized in this function [-Wmaybe-uninitialized] int i, j, c, l, x, y, lungc, k; ^ adfgvx.cpp:27:2: warning: 'y' may be used uninitialized in this function [-Wmaybe-uninitialized] if(t==5) return 'V'; ^ adfgvx.cpp:34:21: note: 'y' was declared here int i, j, c, l, x, y, lungc, k; ^ adfgvx.cpp:27:2: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized] if(t==5) return 'V'; ^ adfgvx.cpp:34:18: note: 'x' was declared here int i, j, c, l, x, y, lungc, k; ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | OK. | 5 | 5 | Exemplu | |
2 | 0 secunde | Raspuns gresit. | 5 | 0 | Exemplu | |
3 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
4 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
5 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
6 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
7 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
8 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
9 | 0 secunde | OK. | 5 | 5 | ||
10 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
Punctaj total | 10 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema ADFGVX 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ă.