#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 | #50654022 | Utilizator | |
Fișier | adfgvx.cpp | Dimensiune | 5.90 KB |
Data încărcării | 18 Aprilie 2024, 18:05 | Scor / rezultat | Eroare de compilare |
adfgvx.cpp: In function 'void create_encryption_matrix(char**, std::string, char**)': adfgvx.cpp:10:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < key.size(); ++i) { ^ adfgvx.cpp:11:42: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int j = i + 1; j < key.size(); ++j) { ^ adfgvx.cpp:22:50: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int col_index = 0; col_index < key.size(); ++col_index) { ^ adfgvx.cpp: In function 'std::string encrypt_message(std::string, char**, std::string)': adfgvx.cpp:56:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < key.size(); ++i) { ^ adfgvx.cpp:57:52: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int j = i; j < encrypted_message.size(); j += key.size()) { ^ adfgvx.cpp:64:46: error: 'sort' was not declared in this scope sort(sorted_key.begin(), sorted_key.end()); ^ adfgvx.cpp:67:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < key.size(); ++i) { ^ adfgvx.cpp: In function 'std::string decrypt_message(std::string, char**, std::string)': adfgvx.cpp:89:5: error: 'vector' was not declared in this scope vector<string> encrypted_codes; ^ adfgvx.cpp:89:18: error: expected primary-expression before '>' token vector<string> encrypted_codes; ^ adfgvx.cpp:89:20: error: 'encrypted_codes' was not declared in this scope vector<string> encrypted_codes; ^ adfgvx.cpp:97:46: error: 'sort' was not declared in this scope sort(sorted_key.begin(), sorted_key.end()); ^ adfgvx.cpp:101:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < key.size(); ++i) { ^ adfgvx.cpp:110:50: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < encrypted_matrix[0].size(); ++i) { ^ adfgvx.cpp:111:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int j = 0; j < key.size(); ++j) { ^
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ă.