#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 | #57700452 | Utilizator | |
Fișier | hambar.cpp | Dimensiune | 1016 B |
Data încărcării | 10 Aprilie 2025, 22:23 | Scor / rezultat | Eroare de compilare |
hambar.cpp:7:1: error: 'si' does not name a type si n,m,k=1,i; ^ hambar.cpp: In function 'int cauta(int, int, int, int, int)': hambar.cpp:11:14: error: 'm' was not declared in this scope while(k<=m) ^ hambar.cpp: At global scope: hambar.cpp:17:9: error: variable or field 'ar' declared void void ar(si l1, si c1, si l2, si c2) ^ hambar.cpp:17:9: error: 'si' was not declared in this scope hambar.cpp:17:16: error: 'si' was not declared in this scope void ar(si l1, si c1, si l2, si c2) ^ hambar.cpp:17:23: error: 'si' was not declared in this scope void ar(si l1, si c1, si l2, si c2) ^ hambar.cpp:17:30: error: 'si' was not declared in this scope void ar(si l1, si c1, si l2, si c2) ^ hambar.cpp: In function 'void divi(int, int, int, int, int)': hambar.cpp:27:26: error: 'ar' was not declared in this scope int sa=ar(l1,c1,l2,c2); ^ hambar.cpp: In function 'int main()': hambar.cpp:43:17: error: variable 'std::ifstream fin' has initializer but incomplete type ifstream fin("hambar.in"); ^ hambar.cpp:44:18: error: variable 'std::ofstream fout' has initializer but incomplete type ofstream fout("hambar.out"); ^ hambar.cpp:45:10: error: 'n' was not declared in this scope fin>>n>>m; ^ hambar.cpp:45:13: error: 'm' was not declared in this scope fin>>n>>m; ^ hambar.cpp:46:9: error: 'i' was not declared in this scope for(i=1;i<=m;i++)fin>>a[i].l>>a[i].c; ^
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ă.