#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 | #55294806 | Utilizator | |
Fișier | plaja.cpp | Dimensiune | 1.08 KB |
Data încărcării | 09 Ianuarie 2025, 21:55 | Scor / rezultat | Eroare de compilare |
plaja.cpp: In function 'int get(int*, int)': plaja.cpp:11:5: error: 'stack' was not declared in this scope stack<int> s; ^ plaja.cpp:11:5: note: suggested alternative: In file included from /usr/include/c++/4.8/stack:61:0, from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:88, from plaja.cpp:1: /usr/include/c++/4.8/bits/stl_stack.h:96:11: note: 'std::stack' class stack ^ plaja.cpp:11:11: error: expected primary-expression before 'int' stack<int> s; ^ plaja.cpp:11:11: error: expected ';' before 'int' plaja.cpp:15:12: error: 's' was not declared in this scope if(s.empty() || vec[s.top()] <= vec[i])s.push(i++); ^ plaja.cpp:21:32: error: 'max' was not declared in this scope maxa = max(maxa , a); ^ plaja.cpp:21:32: note: suggested alternative: In file included from /usr/include/c++/4.8/algorithm:62:0, from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:64, from plaja.cpp:1: /usr/include/c++/4.8/bits/stl_algo.h:4236:5: note: 'std::max' max(initializer_list<_Tp> __l, _Compare __comp) ^ plaja.cpp:24:12: error: 's' was not declared in this scope while(!s.empty()) ^ plaja.cpp:29:28: error: 'max' was not declared in this scope maxa = max(maxa , a); ^ plaja.cpp:29:28: note: suggested alternative: In file included from /usr/include/c++/4.8/algorithm:62:0, from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:64, from plaja.cpp:1: /usr/include/c++/4.8/bits/stl_algo.h:4236:5: note: 'std::max' max(initializer_list<_Tp> __l, _Compare __comp) ^ plaja.cpp: In function 'int main()': plaja.cpp:45:28: error: 'max' was not declared in this scope maxx = max(maxx , x); ^ plaja.cpp:45:28: note: suggested alternative: In file included from /usr/include/c++/4.8/algorithm:62:0, from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:64, from plaja.cpp:1: /usr/include/c++/4.8/bits/stl_algo.h:4236:5: note: 'std::max' max(initializer_list<_Tp> __l, _Compare __comp) ^
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ă.