#2943
Se dă o matrice pătratică de n x n numere naturale și o valoare naturală T. Suma unei submatrice este suma elementelor submatricei. Să se determine numărul submatricelor care au suma mai mică sau egală cu T.
| Problema | maru | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.5 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64213507 | Utilizator | |
| Fișier | maru.cpp | Dimensiune | 549 B |
| Data încărcării | 23 Aprilie 2026, 10:44 | Scor/rezultat | Eroare de compilare |
maru.cpp: In function ‘int main()’: maru.cpp:7:9: error: expected ‘(’ before ‘{’ token 7 | for{j=1; j<=n;j++) | ^ | ( maru.cpp:7:9: error: expected primary-expression before ‘{’ token maru.cpp:16:35: error: expected primary-expression at end of input 16 | return 0; | ^ maru.cpp:16:35: error: expected ‘;’ at end of input 16 | return 0; | ^ | ; maru.cpp:16:35: error: expected primary-expression at end of input maru.cpp:16:35: error: expected ‘)’ at end of input 16 | return 0; | ^ | ) maru.cpp:7:9: note: to match this ‘(’ 7 | for{j=1; j<=n;j++) | ^ maru.cpp:16:35: error: expected statement at end of input 16 | return 0; | ^ maru.cpp:16:35: error: expected ‘}’ at end of input maru.cpp:5:1: note: to match this ‘{’ 5 | {cin>>t>>n>>a>>b>>c>>d; | ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema maru 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ă.