#3808
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 | #63214581 | Utilizator | |
| Fișier | adfgvx.cpp | Dimensiune | 4.75 KB |
| Data încărcării | 21 Februarie 2026, 14:25 | Scor/rezultat | 0 puncte |
adfgvx.cpp: In function 'int main()': adfgvx.cpp:51:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(answer[n].size() + 2 <= limit){ ^ adfgvx.cpp:54:47: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] } else if(answer[n].size() + 1 <= limit){ ^ adfgvx.cpp:58:43: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] } else if(answer[n].size() == limit) { ^ adfgvx.cpp:89:47: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int j = 0; j < answer[i].size(); j++){ ^ adfgvx.cpp:112:45: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 0; i < message.size(); i++){ ^ adfgvx.cpp:119:49: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 0; i < message.size() - 1; i++){ ^ adfgvx.cpp:120:53: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int j = i + 1; j < message.size(); j++){ ^ adfgvx.cpp:128:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 0; i < key.size(); i++) ^ adfgvx.cpp:129:25: warning: array subscript has type 'char' [-Wchar-subscripts] frecv[key[i]] = i; ^ adfgvx.cpp:134:47: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int j = 0; j < answer[i].size(); j++){ ^ adfgvx.cpp:142:47: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 0; i < answer[0].size(); i++){ ^ adfgvx.cpp:143:38: warning: array subscript has type 'char' [-Wchar-subscripts] if(frecv[answer[0][i]] != i){ ^ adfgvx.cpp:145:72: warning: array subscript has type 'char' [-Wchar-subscripts] swap(answer[j][i], answer[j][frecv[answer[0][i]]]); ^ adfgvx.cpp:152:47: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int j = 0; j < answer[i].size(); j++){ ^ adfgvx.cpp: In function 'int get_row(char)': adfgvx.cpp:21:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ adfgvx.cpp: In function 'int get_col(char)': adfgvx.cpp:28:1: warning: control reaches end of non-void function [-Wreturn-type] } ^
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0 secunde | Raspuns gresit. | 5 | 0 | 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 | Raspuns gresit. | 5 | 0 | ||
| 10 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
| Punctaj total | 0 | |||||
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ă.