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 | #58493742 | Utilizator | |
Fișier | oop_3.cpp | Dimensiune | 946 B |
Data încărcării | 11 Iunie 2025, 12:15 | Scor / rezultat | Eroare de compilare |
oop_3.cpp:7:36: error: expected ';' at end of member declaration int v[100000], maxim[100000] vs;//vs - indicele elementului din varf ^ oop_3.cpp:7:38: error: 'vs' does not name a type int v[100000], maxim[100000] vs;//vs - indicele elementului din varf ^ oop_3.cpp: In constructor 'Stiva::Stiva()': oop_3.cpp:11:13: error: 'vs' was not declared in this scope vs = 0; ^ oop_3.cpp: In member function 'int Stiva::Empty()': oop_3.cpp:16:16: error: 'vs' was not declared in this scope if(vs == 0) ^ oop_3.cpp: In member function 'void Stiva::Push(int)': oop_3.cpp:24:13: error: 'vs' was not declared in this scope vs++; ^ oop_3.cpp: In member function 'void Stiva::Pop()': oop_3.cpp:34:16: error: 'vs' was not declared in this scope if(vs != 0) ^ oop_3.cpp: In member function 'int Stiva::Top()': oop_3.cpp:41:26: error: 'vs' was not declared in this scope return v[vs]; ^ oop_3.cpp: In member function 'int Stiva::Max()': oop_3.cpp:51:30: error: 'vs' was not declared in this scope return maxim[vs]; ^ oop_3.cpp: In member function 'int Stiva::Top()': oop_3.cpp:44:9: warning: control reaches end of non-void function [-Wreturn-type] } ^ oop_3.cpp: In member function 'int Stiva::Empty()': oop_3.cpp:20:9: warning: control reaches end of non-void function [-Wreturn-type] } ^ oop_3.cpp: In member function 'int Stiva::Max()': oop_3.cpp:52:9: 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ă.