#1267
Fiind data o matrice de 0 si 1, sa se gaseasca cel mai mare dreptunghi care contine doar 0.
| Problema | plaja | Operații I/O |
plaja.in/plaja.out
|
|---|---|---|---|
| Limita timp | 0.7 secunde | Limita memorie |
Total: 16 MB
/
Stivă 4 MB
|
| Id soluție | #64815708 | Utilizator | |
| Fișier | plaja.cpp | Dimensiune | 554 B |
| Data încărcării | 03 Iunie 2026, 10:31 | Scor/rezultat | Eroare de compilare |
plaja.cpp:7:1: error: ‘stack’ does not name a type; did you mean ‘obstack’? 7 | stack <int> S; | ^~~~~ | obstack plaja.cpp: In function ‘int main()’: plaja.cpp:17:9: error: ‘cont’ was not declared in this scope; did you mean ‘const’? 17 | cont=0; | ^~~~ | const plaja.cpp:21:28: error: ‘copie’ was not declared in this scope 21 | if(cont!=0 && cont>copie){ | ^~~~~ plaja.cpp:22:16: error: ‘S’ was not declared in this scope 22 | if(S.empty()==1) l1=i; | ^ plaja.cpp:22:30: error: ‘l1’ was not declared in this scope 22 | if(S.empty()==1) l1=i; | ^~ plaja.cpp:23:13: error: ‘S’ was not declared in this scope 23 | S.push(cont); | ^ plaja.cpp:25:9: error: ‘copie’ was not declared in this scope 25 | copie=cont; | ^~~~~
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema plaja 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ă.