| 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 | #64723935 | Utilizator | |
| Fișier | oop_3.cpp | Dimensiune | 1.29 KB |
| Data încărcării | 26 Mai 2026, 09:52 | Scor/rezultat | Eroare de compilare |
oop_3.cpp:12:5: error: ISO C++ forbids declaration of ‘STIVA’ with no type [-fpermissive] 12 | STIVA() | ^~~~~ oop_3.cpp: In member function ‘int Stiva::STIVA()’: oop_3.cpp:17:5: warning: no return statement in function returning non-void [-Wreturn-type] 17 | } | ^ oop_3.cpp: In member function ‘int Stiva::Max()’: oop_3.cpp:49:5: warning: no return statement in function returning non-void [-Wreturn-type] 49 | } | ^ oop_3.cpp: At global scope: oop_3.cpp:71:5: error: redefinition of ‘int main()’ 71 | int main() | ^~~~ oop_3.cpp:57:5: note: ‘int main()’ previously defined here 57 | int main() | ^~~~ oop_3.cpp: In member function ‘int Stiva::Top()’: oop_3.cpp:40:5: warning: control reaches end of non-void function [-Wreturn-type] 40 | } | ^
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ă.