#1972
Să se determine dreptunghiul de arie maximă ce conține numai 0.
| Problema | Hambar | Operații I/O |
hambar.in/hambar.out
|
|---|---|---|---|
| Limita timp | 3 secunde | Limita memorie |
Total: 5 MB
/
Stivă 1 MB
|
| Id soluție | #64761146 | Utilizator | |
| Fișier | hambar.cpp | Dimensiune | 809 B |
| Data încărcării | 28 Mai 2026, 12:28 | Scor/rezultat | Eroare de compilare |
hambar.cpp:3:1: error: ‘ifstream’ does not name a type 3 | ifstream f ("mat.in") ; | ^~~~~~~~ hambar.cpp:4:1: error: ‘ofstream’ does not name a type 4 | ofstream g ("mat.out") ; | ^~~~~~~~ hambar.cpp:8:23: error: expected ‘,’ or ‘...’ before numeric constant 8 | void div_et_imp ( int 11 , int c1, int l2 , int c2 ) | ^~ hambar.cpp: In function ‘void div_et_imp(int)’: hambar.cpp:10:7: error: ‘l1’ was not declared in this scope 10 | if ( l1 == l2 && c1 == c2 ) | ^~ hambar.cpp:10:13: error: ‘l2’ was not declared in this scope 10 | if ( l1 == l2 && c1 == c2 ) | ^~ hambar.cpp:10:19: error: ‘c1’ was not declared in this scope 10 | if ( l1 == l2 && c1 == c2 ) | ^~ hambar.cpp:10:25: error: ‘c2’ was not declared in this scope 10 | if ( l1 == l2 && c1 == c2 ) | ^~ hambar.cpp:11:5: error: ‘g’ was not declared in this scope 11 | g << a[l1][c1] << " " ; | ^ hambar.cpp: In function ‘int main()’: hambar.cpp:27:2: error: ‘f’ was not declared in this scope 27 | f >> marime ; | ^ hambar.cpp:34:13: error: too many arguments to function ‘void div_et_imp(int)’ 34 | div_et_imp ( 1 , 1 , n , n ) ; | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~ hambar.cpp:8:6: note: declared here 8 | void div_et_imp ( int 11 , int c1, int l2 , int c2 ) | ^~~~~~~~~~
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Hambar 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ă.