#3616
adfgx
Cifrul ADFGX
este un cifru care folosește o matrice pătratică 5x5
și o cheie
. În matricea pătratică, liniile și coloanele vor fi numerotate cu litere. Avem această matrice ca exemplu.
A D F G X A a b c d e D f g h i j F k l m n o G p q r s t X u v w x y
Problema | adfgx | Operații I/O |
adfgx.in /adfgx.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #46543136 | Utilizator | |
Fișier | adfgx.cpp | Dimensiune | 3.21 KB |
Data încărcării | 16 Noiembrie 2023, 16:32 | Scor / rezultat | 30 puncte |
adfgx.cpp: In function 'int main()': adfgx.cpp:95:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int k=0;k<mesaj.size();k++) ^ adfgx.cpp:119:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0;i<cheieSort.size();i++) ^ adfgx.cpp:122:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int j=0;j<cheie.size();j++) ^ adfgx.cpp:128:36: warning: NULL used in arithmetic [-Wpointer-arith] if(pula[k][j]!=NULL) ^ adfgx.cpp:134:36: warning: NULL used in arithmetic [-Wpointer-arith] if(c1==NULL) ^ adfgx.cpp:138:41: warning: NULL used in arithmetic [-Wpointer-arith] else if(c2==NULL) ^ adfgx.cpp:148:36: warning: converting to non-pointer type 'char' from NULL [-Wconversion-null] c1 = NULL; ^ adfgx.cpp:149:36: warning: converting to non-pointer type 'char' from NULL [-Wconversion-null] c2 = NULL; ^ adfgx.cpp: In function 'char cacat(int)': adfgx.cpp:40:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ adfgx.cpp: In function 'int inversa(char)': adfgx.cpp:54:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ adfgx.cpp: In function 'int cod(char)': adfgx.cpp:70:20: warning: 'jLit' may be used uninitialized in this function [-Wmaybe-uninitialized] return iLit*10+jLit; ^ adfgx.cpp:70:16: warning: 'iLit' may be used uninitialized in this function [-Wmaybe-uninitialized] return iLit*10+jLit; ^ adfgx.cpp: In function 'int main()': adfgx.cpp:70:20: warning: 'jLit' may be used uninitialized in this function [-Wmaybe-uninitialized] return iLit*10+jLit; ^ adfgx.cpp:58:14: note: 'jLit' was declared here int iLit,jLit; ^ adfgx.cpp:70:16: warning: 'iLit' may be used uninitialized in this function [-Wmaybe-uninitialized] return iLit*10+jLit; ^ adfgx.cpp:58:9: note: 'iLit' was declared here int iLit,jLit; ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
0 | 0 secunde | OK. | 10 | 10 | ||
1 | 0 secunde | OK. | 10 | 10 | ||
2 | 0 secunde | OK. | 10 | 10 | ||
3 | 0 secunde | Caught fatal signal 11 | 10 | 0 | ||
4 | 0 secunde | Caught fatal signal 11 | 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 | Caught fatal signal 11 | 10 | 0 | ||
Punctaj total | 30 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema adfgx 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ă.