#781
Se dă o matrice cu n linii şi n coloane şi elemente numere naturale. Să se afişeze, în ordine crescătoare, sumele elementelor din cele patru zone delimitate de diagonale.
| Problema | Zone1 | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64566358 | Utilizator | |
| Fișier | zone1.cpp | Dimensiune | 1.56 KB |
| Data încărcării | 14 Mai 2026, 16:46 | Scor/rezultat | 0 puncte |
zone1.cpp: In function ‘int x1(int, int)’: zone1.cpp:20:1: warning: control reaches end of non-void function [-Wreturn-type] 20 | } | ^ zone1.cpp: In function ‘int x2(int, int)’: zone1.cpp:35:1: warning: control reaches end of non-void function [-Wreturn-type] 35 | } | ^ zone1.cpp: In function ‘int x3(int, int)’: zone1.cpp:50:1: warning: control reaches end of non-void function [-Wreturn-type] 50 | } | ^ zone1.cpp: In function ‘int x4(int, int)’: zone1.cpp:65:1: warning: control reaches end of non-void function [-Wreturn-type] 65 | } | ^
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.003 secunde | Raspuns gresit. | 20 | 0 | Exemplu | |
| 2 | 0.003 secunde | Raspuns gresit. | 40 | 0 | ||
| 3 | 0.006 secunde | Raspuns gresit. | 40 | 0 | ||
| Punctaj total | 0 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Zone1 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ă.