Detalii evaluare #64125145

Rezumat problemă

#3808

Să se cripteze sau să se decripteze un mesaj folosind cifrul ADFGVX.

Detalii

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 Girigan Andrei (AndreiGir)
Fișier adfgvx.cpp Dimensiune 6.14 KB
Data încărcării 18 Aprilie 2026, 21:41 Scor/rezultat 0 puncte

Evaluare

Mesaj compilare

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;
      |         ^~~~~~

Rezultat evaluare

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

Cum funcționează evaluarea?

www.pbinfo.ro permite evaluarea a două tipuri de probleme:

  • probleme la care rezolvarea presupune scrierea unui program complet
  • probleme la care rezolvarea presupune scrierea unei secvențe de program - câteva instrucțiuni, o listă de declarații, una sau mai multe funcții, etc.

Problema ADFGVX face parte din prima categorie. Soluția propusă de tine va fi evaluată astfel:

  • Programul sursă este compilat folosind compilatorul corespunzător. Dacă în urma compilării se obțin erori sau avertismente, acestea sunt afișate în această pagină.
  • Dacă programul a fost compilat, executabilul obținut va fi rulat, furnizându-i-se unul sau mai multe seturi de date de intrare, în concordanță cu restricțiile specifice problemei. Pentru fiecare set de date se obține un anumit punctaj, în raport cu corectitudinea soluției tale.

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ă.

Du-te sus!