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 | #58482355 | Utilizator | |
Fișier | oop_3.cpp | Dimensiune | 1.18 KB |
Data încărcării | 10 Iunie 2025, 12:21 | Scor / rezultat | Eroare de compilare |
oop_3.cpp:10:18: error: expected ';' at end of member declaration int v[101],i,n ^ oop_3.cpp: In member function 'void Stiva::Push(int)': oop_3.cpp:15:9: error: 'sp' was not declared in this scope sp++; ^ oop_3.cpp: In member function 'void Stiva::Pop()': oop_3.cpp:21:7: error: 'sp' was not declared in this scope sp--; ^ oop_3.cpp: In member function 'int Stiva::Top()': oop_3.cpp:29:12: error: 'sp' was not declared in this scope if(sp!=0) ^ oop_3.cpp: In member function 'int Stiva::Max()': oop_3.cpp:38:12: error: 'sp' was not declared in this scope if(sp!=0) ^ oop_3.cpp:40:21: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator>' if(v[i]>max) ^ oop_3.cpp:41:16: error: overloaded function with no contextual type information max=v[i]; ^ oop_3.cpp: In member function 'int Stiva::Empty()': oop_3.cpp:49:12: error: 'sp' was not declared in this scope if(sp==0) ^ oop_3.cpp: In function 'int main()': oop_3.cpp:70:5: error: redefinition of 'int main()' int main() ^ oop_3.cpp:55:5: error: 'int main()' previously defined here int main() ^ oop_3.cpp: In member function 'int Stiva::Max()': oop_3.cpp:44:5: warning: control reaches end of non-void function [-Wreturn-type] } ^ oop_3.cpp: In member function 'int Stiva::Top()': oop_3.cpp:33: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ă.