#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 | #64460130 | Utilizator | |
| Fișier | hambar.cpp | Dimensiune | 961 B |
| Data încărcării | 08 Mai 2026, 08:47 | Scor/rezultat | Eroare de compilare |
hambar.cpp:11:6: error: expected initializer before ‘a’ 11 | }pom a[1001]; | ^ hambar.cpp: In function ‘int cauta(int, int, int, int)’: hambar.cpp:15:12: error: ‘a’ was not declared in this scope 15 | if(a[i].x>=l1 and a[i].x<=l2 and a[i].y>=c1 and a[i].y<=c2) | ^ hambar.cpp: In function ‘void divide(int, int, int, int, int)’: hambar.cpp:25:47: error: expected ‘;’ before ‘else’ 25 | mx=max(mx,(l2 - l1 + 1)*(c2-c1+1)) | ^ | ; 26 | else{ | ~~~~ hambar.cpp: In function ‘int main()’: hambar.cpp:39:14: error: ‘a’ was not declared in this scope 39 | fin>>a[i].x>>a[i].y; | ^ hambar.cpp:41:25: error: expected ‘;’ before ‘fout’ 41 | divide(1,1,n,n,maxx) | ^ | ; 42 | fout<<maxx; | ~~~~ hambar.cpp:36:9: warning: unused variable ‘i’ [-Wunused-variable] 36 | int i, maxx = 0; | ^
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ă.