#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 | #57634231 | Utilizator | |
Fișier | hambar.cpp | Dimensiune | 1.51 KB |
Data încărcării | 08 Aprilie 2025, 14:09 | Scor / rezultat | Eroare de compilare |
hambar.cpp:3:13: error: variable 'std::ifstream fin' has initializer but incomplete type ifstream fin("hambar.in"); ^ hambar.cpp:4:14: error: variable 'std::ofstream fout' has initializer but incomplete type ofstream fout("hambar.out"); ^ hambar.cpp: In function 'int maxAreaInHist(int*, int)': hambar.cpp:11:5: error: 'stack' was not declared in this scope stack<int> st; ^ hambar.cpp:11:11: error: expected primary-expression before 'int' stack<int> st; ^ hambar.cpp:11:11: error: expected ';' before 'int' hambar.cpp:16:13: error: 'st' was not declared in this scope if (st.empty() || x[st.top()] <= x[j]) ^ hambar.cpp:26:13: error: 'st' was not declared in this scope while (!st.empty()) ^
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ă.