| 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 | #64938366 | Utilizator | |
| Fișier | oop_3.cpp | Dimensiune | 838 B |
| Data încărcării | 17 Iunie 2026, 17:56 | 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:15:14: error: ‘w’ was not declared in this scope 15 | if (!w.empty()) | ^ oop_3.cpp: In function ‘int Top()’: oop_3.cpp:22:14: error: ‘w’ was not declared in this scope 22 | if (!w.empty()) | ^ oop_3.cpp: In function ‘int Max()’: oop_3.cpp:31:13: error: ‘w’ was not declared in this scope 31 | if (w.empty()) | ^ oop_3.cpp:33:26: error: ‘w’ was not declared in this scope 33 | stack<int>temp = w; | ^ oop_3.cpp: In function ‘int Empty()’: oop_3.cpp:46:12: error: ‘w’ was not declared in this scope 46 | if(w.empty()) | ^ oop_3.cpp: In function ‘int main()’: oop_3.cpp:58:5: error: ‘Stiva’ was not declared in this scope 58 | Stiva w; | ^~~~~ oop_3.cpp:66:13: error: ‘w’ was not declared in this scope 66 | w.Push(x); | ^ oop_3.cpp:69:13: error: ‘w’ was not declared in this scope 69 | w.Pop(); | ^ oop_3.cpp:71:21: error: ‘w’ was not declared in this scope 71 | fout << w.Top() << "\n"; | ^ oop_3.cpp:73:21: error: ‘w’ was not declared in this scope 73 | fout << w.Max() << "\n"; | ^ oop_3.cpp: In function ‘int Max()’: oop_3.cpp:42:5: warning: control reaches end of non-void function [-Wreturn-type] 42 | } | ^
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ă.