| Problema | oop_3 | Operații I/O |
oop_3.in/oop_3.out
|
|---|---|---|---|
| Limita timp | 0.2 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64519199 | Utilizator | |
| Fișier | oop_3.cpp | Dimensiune | 957 B |
| Data încărcării | 12 Mai 2026, 11:05 | Scor/rezultat | Eroare de compilare |
oop_3.cpp:4:1: error: expected unqualified-id before ‘private’ 4 | private: | ^~~~~~~ oop_3.cpp:6:1: error: expected unqualified-id before ‘public’ 6 | public: | ^~~~~~ oop_3.cpp: In function ‘void Pop()’: oop_3.cpp:16:12: error: ‘vf’ was not declared in this scope 16 | if(vf>0) | ^~ oop_3.cpp: In function ‘int Top()’: oop_3.cpp:24:12: error: ‘vf’ was not declared in this scope 24 | if(vf>0) | ^~ oop_3.cpp:25:20: error: ‘st’ was not declared in this scope; did you mean ‘std’? 25 | return st[vf]; | ^~ | std oop_3.cpp: In function ‘int Max()’: oop_3.cpp:34:12: error: ‘vf’ was not declared in this scope 34 | if(vf<0) return -1; | ^~ oop_3.cpp:37:25: error: ‘st’ was not declared in this scope; did you mean ‘std’? 37 | if(vmax>st[i]) | ^~ | std oop_3.cpp: In function ‘int Empty()’: oop_3.cpp:45:12: error: ‘vf’ was not declared in this scope 45 | if(vf>0) return 1; | ^~ oop_3.cpp: In function ‘int main()’: oop_3.cpp:54:5: error: ‘Stiva’ was not declared in this scope 54 | Stiva w; | ^~~~~ oop_3.cpp:62:13: error: ‘w’ was not declared in this scope 62 | w.Push(x); | ^ oop_3.cpp:65:13: error: ‘w’ was not declared in this scope 65 | w.Pop(); | ^ oop_3.cpp:67:21: error: ‘w’ was not declared in this scope 67 | fout << w.Top() << "\n"; | ^ oop_3.cpp:69:21: error: ‘w’ was not declared in this scope 69 | fout << w.Max() << "\n"; | ^ oop_3.cpp: In function ‘int Empty()’: oop_3.cpp:47:5: warning: control reaches end of non-void function [-Wreturn-type] 47 | } | ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema oop_3 face parte din a doua categorie. Pentru aceste probleme se folosește un program suport, furnizat de propunătorul problemei. 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ă.