#3561
Playfair
Să se cripteze sau să se decripteze un mesaj folosind cifrul Playfair
.
cifrul Playfair
Problema | Playfair | Operații I/O |
playfair.in /playfair.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #54617166 | Utilizator | |
Fișier | playfair.cpp | Dimensiune | 2.33 KB |
Data încărcării | 03 Decembrie 2024, 19:33 | Scor / rezultat | 0 puncte |
playfair.cpp: In function 'int main()': playfair.cpp:29:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=1;i<s.length();i+=2){ ^ playfair.cpp:53:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=1;i<s.length();i+=2){ ^ playfair.cpp:80:21: warning: 'bj' may be used uninitialized in this function [-Wmaybe-uninitialized] bj--; ^ playfair.cpp:85:42: warning: 'bi' may be used uninitialized in this function [-Wmaybe-uninitialized] fout<<a[ai][bj]<<a[bi][aj]; ^ playfair.cpp:79:21: warning: 'aj' may be used uninitialized in this function [-Wmaybe-uninitialized] aj--; ^ playfair.cpp:85:31: warning: 'ai' may be used uninitialized in this function [-Wmaybe-uninitialized] fout<<a[ai][bj]<<a[bi][aj]; ^ playfair.cpp:49:61: warning: 'bj' may be used uninitialized in this function [-Wmaybe-uninitialized] else if(ai==bi) fout<<a[ai][(aj+1)%5]<<a[bi][(bj+1)%5]; ^ playfair.cpp:50:43: warning: 'bi' may be used uninitialized in this function [-Wmaybe-uninitialized] else fout<<a[ai][bj]<<a[bi][aj]; ^ playfair.cpp:49:44: warning: 'aj' may be used uninitialized in this function [-Wmaybe-uninitialized] else if(ai==bi) fout<<a[ai][(aj+1)%5]<<a[bi][(bj+1)%5]; ^ playfair.cpp:50:32: warning: 'ai' may be used uninitialized in this function [-Wmaybe-uninitialized] else fout<<a[ai][bj]<<a[bi][aj]; ^ playfair.cpp:71:13: warning: 'miss' may be used uninitialized in this function [-Wmaybe-uninitialized] if((int(s[i])-97)==miss)fout<<s[i-1]<<s[i-1]; ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | Raspuns gresit. | 10 | 0 | Exemplu | |
2 | 0 secunde | Raspuns gresit. | 10 | 0 | Exemplu | |
3 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
4 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
5 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
6 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
7 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
8 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
9 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
10 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
Punctaj total | 0 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Playfair 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ă.