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 | #57429042 | Utilizator | |
Fișier | oop_3.cpp | Dimensiune | 917 B |
Data încărcării | 31 Martie 2025, 09:44 | Scor / rezultat | Eroare de compilare |
oop_3.cpp: In member function 'void Stiva::Push(int)': oop_3.cpp:12:9: error: 'S' was not declared in this scope S[++vf]=x; ^ oop_3.cpp:12:13: error: 'vf' was not declared in this scope S[++vf]=x; ^ oop_3.cpp: In member function 'void Stiva::Pop()': oop_3.cpp:17:9: error: 'vf' was not declared in this scope vf--; ^ oop_3.cpp: In member function 'int Stiva::Top()': oop_3.cpp:23:13: error: 'vf' was not declared in this scope if (vf>0) return S[vf]; ^ oop_3.cpp:23:26: error: 'S' was not declared in this scope if (vf>0) return S[vf]; ^ oop_3.cpp: In member function 'int Stiva::Max()': oop_3.cpp:30:13: error: 'vf' was not declared in this scope if (vf>0) return S[vf]; ^ oop_3.cpp:30:26: error: 'S' was not declared in this scope if (vf>0) return S[vf]; ^ oop_3.cpp:31:9: error: 'mx' was not declared in this scope mx=s[1]; ^ oop_3.cpp:31:12: error: 's' was not declared in this scope mx=s[1]; ^ oop_3.cpp:32:26: error: 'vf' was not declared in this scope for (int i=1; i<=vf; i++) ^ oop_3.cpp:34:17: error: 'S' was not declared in this scope if (S[i]>max) ^ oop_3.cpp: In member function 'int Stiva::Empty()': oop_3.cpp:45:12: error: 'vf' was not declared in this scope if (vf==0) return 1; ^ oop_3.cpp: In member function 'int Stiva::Top()': oop_3.cpp:25:5: warning: control reaches end of non-void function [-Wreturn-type] } ^ oop_3.cpp: In member function 'int Stiva::Max()': oop_3.cpp:40:5: warning: control reaches end of non-void function [-Wreturn-type] } ^
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ă.