| 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 | #64938364 | Utilizator | |
| Fișier | oop_3.cpp | Dimensiune | 766 B |
| Data încărcării | 17 Iunie 2026, 17:55 | Scor/rezultat | Eroare de compilare |
oop_3.cpp: In function ‘void Push(int)’: oop_3.cpp:6:9: error: ‘w’ was not declared in this scope 6 | w.push(x); | ^ oop_3.cpp: In function ‘void Pop()’: oop_3.cpp:11:14: error: ‘w’ was not declared in this scope 11 | if (!w.empty()) | ^ oop_3.cpp: In function ‘int Top()’: oop_3.cpp:18:14: error: ‘w’ was not declared in this scope 18 | if (!w.empty()) | ^ oop_3.cpp: In function ‘int Max()’: oop_3.cpp:27:13: error: ‘w’ was not declared in this scope 27 | if (w.empty()) | ^ oop_3.cpp:29:26: error: ‘w’ was not declared in this scope 29 | stack<int>temp = w; | ^ oop_3.cpp: In function ‘int Empty()’: oop_3.cpp:42:12: error: ‘w’ was not declared in this scope 42 | if(w.empty()) | ^ oop_3.cpp: In function ‘int main()’: oop_3.cpp:55:5: error: ‘Stiva’ was not declared in this scope 55 | Stiva w; | ^~~~~ oop_3.cpp:63:13: error: ‘w’ was not declared in this scope 63 | w.Push(x); | ^ oop_3.cpp:66:13: error: ‘w’ was not declared in this scope 66 | w.Pop(); | ^ oop_3.cpp:68:21: error: ‘w’ was not declared in this scope 68 | fout << w.Top() << "\n"; | ^ oop_3.cpp:70:21: error: ‘w’ was not declared in this scope 70 | fout << w.Max() << "\n"; | ^ oop_3.cpp: In function ‘int Max()’: oop_3.cpp:38:5: warning: control reaches end of non-void function [-Wreturn-type] 38 | } | ^
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ă.