#3598
Sa se afiseze un mesaj dupa aplicarea cifrului Beaufort pe acesta
cifrul Beaufort
| Problema | Beaufort | Operații I/O |
beaufort.in/beaufort.out
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #62896724 | Utilizator | |
| Fișier | beaufort.cpp | Dimensiune | 714 B |
| Data încărcării | 05 Februarie 2026, 15:47 | Scor/rezultat | 100 puncte |
beaufort.cpp: In function 'int main()': beaufort.cpp:18:18: warning: array subscript has type 'char' [-Wchar-subscripts] mat[i][j]=z; ^ beaufort.cpp:18:21: warning: array subscript has type 'char' [-Wchar-subscripts] mat[i][j]=z; ^ beaufort.cpp:28:25: warning: array subscript has type 'char' [-Wchar-subscripts] if(mat[i][m[k]]==c[ps]) ^ beaufort.cpp:28:31: warning: array subscript has type 'char' [-Wchar-subscripts] if(mat[i][m[k]]==c[ps]) ^ beaufort.cpp:35:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(ps==strlen(c)) ^ beaufort.cpp:18:21: warning: array subscript is above array bounds [-Warray-bounds] mat[i][j]=z; ^ beaufort.cpp:18:18: warning: array subscript is above array bounds [-Warray-bounds] mat[i][j]=z; ^ beaufort.cpp:28:25: warning: array subscript is above array bounds [-Warray-bounds] if(mat[i][m[k]]==c[ps]) ^
| 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.02 secunde | OK. | 20 | 20 | ||
| 6 | 0 secunde | OK. | 5 | 5 | ||
| 7 | 0 secunde | OK. | 15 | 15 | ||
| 8 | 0 secunde | OK. | 5 | 5 | ||
| 9 | 0 secunde | OK. | 15 | 15 | ||
| Punctaj total | 100 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Beaufort 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ă.