Detalii evaluare #51105209

Rezumat problemă

Sa se cripteze sau sa se decripteze un mesaj folosind cifrul Myszkowski.

Detalii

Problema Myszkowski Operații I/O myszkowski.in/myszkowski.out
Limita timp 0.1 secunde Limita memorie Total: 64 MB / Stivă 8 MB
Id soluție #51105209 Utilizator Griga Victor (victorgriga)
Fișier myszkowski.cpp Dimensiune 4.42 KB
Data încărcării 23 Mai 2024, 20:39 Scor / rezultat 90 puncte

Evaluare


Mesaj compilare

myszkowski.cpp: In function 'void swap_cols(int, int)':
myszkowski.cpp:17:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int i=0; i<mat.size(); i++)

                              ^
myszkowski.cpp: In function 'void afis_grid()':
myszkowski.cpp:24:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int i=0;i<mat.size();i++)

                             ^
myszkowski.cpp:26:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (int j=0;j<mat[i].size();j++)

                                    ^
myszkowski.cpp: In function 'int main()':
myszkowski.cpp:63:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             for (int j=0; j<cheie.size(); j++)

                                        ^
myszkowski.cpp:65:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
                 if (ptr>=mesaj.size())

                                     ^
myszkowski.cpp:72:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             if (ptr>=mesaj.size())

                                 ^
myszkowski.cpp:77:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (int i=0; i<cheie.size(); i++)

                                    ^
myszkowski.cpp:79:42: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             for (int j=i+1; j<cheie.size(); j++)

                                          ^
myszkowski.cpp:88:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         while (st<cheie.size())

                              ^
myszkowski.cpp:90:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             while (dr+1<cheie.size() && mat[0][st]==mat[0][dr+1])

                                    ^
myszkowski.cpp:94:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             for (int i=1; i<mat.size(); i++)

                                      ^
myszkowski.cpp:119:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (int j=0;j<cheie.size();j++)

                                   ^
myszkowski.cpp:124:51: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (int i=0;i<=mesaj.size()/cheie.size()+1;i++)

                                                   ^
myszkowski.cpp:127:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             for (int j=0;j<cheie.size();j++)

                                       ^
myszkowski.cpp:137:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             for (int j=0; j<cheie.size(); j++)

                                        ^
myszkowski.cpp:149:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         while (st<cheie.size())

                              ^
myszkowski.cpp:152:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             while (dr+1<cheie.size() && mat[0][st]==mat[0][dr+1])

                                    ^
myszkowski.cpp:156:53: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             for (int i=1;i<=mesaj.size()/cheie.size();i++)

                                                     ^
myszkowski.cpp:174:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (int i=1; i<mat.size(); i++)

                                  ^
myszkowski.cpp:176:50: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             for (int cautat=0; cautat<cheie.size(); cautat++)

                                                  ^

Rezultat evaluare

Test Timp Mesaj evaluare Scor posibil Scor obținut
1 0 secunde OK. 10 10 Exemplu
2 0 secunde OK. 10 10 Exemplu
3 0 secunde OK. 10 10
4 0 secunde OK. 10 10
5 0 secunde Raspuns gresit. 10 0
6 0 secunde OK. 10 10
7 0 secunde OK. 10 10
8 0 secunde OK. 10 10
9 0 secunde OK. 10 10
10 0 secunde OK. 10 10
Punctaj total 90

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