#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 | #64125145 | Utilizator | |
| Fișier | adfgvx.cpp | Dimensiune | 6.14 KB |
| Data încărcării | 18 Aprilie 2026, 21:41 | Scor/rezultat | 0 puncte |
adfgvx.cpp: In function ‘std::string encrypt(const std::vector<std::__cxx11::basic_string<char> >&, const std::string&, const std::string&)’: adfgvx.cpp:45:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 45 | for (int i = 0; i < key.length(); i++) { | ~~^~~~~~~~~~~~~~ adfgvx.cpp: In function ‘std::string decrypt(const std::vector<std::__cxx11::basic_string<char> >&, const std::string&, const std::string&)’: adfgvx.cpp:88:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 88 | for (int i = 0; i < key.length(); i++) { | ~~^~~~~~~~~~~~~~ adfgvx.cpp:129:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<std::__cxx11::basic_string<char> >::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 129 | for (int i = 0; i < columns.size(); i++) { | ~~^~~~~~~~~~~~~~~~ adfgvx.cpp:131:31: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 131 | for (int row = 0; row < columns[i].length(); row++) { | ~~~~^~~~~~~~~~~~~~~~~~~~~ adfgvx.cpp:152:21: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const std::__cxx11::basic_string<char>::size_type’ {aka ‘const long unsigned int’} [-Wsign-compare] 152 | if (row != string::npos && col != string::npos) { | ~~~~^~~~~~~~~~~~~~~ adfgvx.cpp:152:44: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const std::__cxx11::basic_string<char>::size_type’ {aka ‘const long unsigned int’} [-Wsign-compare] 152 | if (row != string::npos && col != string::npos) { | ~~~~^~~~~~~~~~~~~~~ adfgvx.cpp:127:9: warning: unused variable ‘colIdx’ [-Wunused-variable] 127 | int colIdx = 0; | ^~~~~~ adfgvx.cpp:128:9: warning: unused variable ‘rowIdx’ [-Wunused-variable] 128 | int rowIdx = 0; | ^~~~~~
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.002 secunde | Exited with error status 1 | 5 | 0 | Exemplu | |
| 2 | 0.001 secunde | Exited with error status 1 | 5 | 0 | Exemplu | |
| 3 | 0.001 secunde | Exited with error status 1 | 10 | 0 | ||
| 4 | 0.001 secunde | Exited with error status 1 | 10 | 0 | ||
| 5 | 0.001 secunde | Exited with error status 1 | 20 | 0 | ||
| 6 | 0.001 secunde | Exited with error status 1 | 20 | 0 | ||
| 7 | 0.001 secunde | Exited with error status 1 | 10 | 0 | ||
| 8 | 0.001 secunde | Exited with error status 1 | 10 | 0 | ||
| 9 | 0.001 secunde | Exited with error status 1 | 5 | 0 | ||
| 10 | 0.001 secunde | Exited with error status 1 | 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ă.