| 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 | #64569685 | Utilizator | |
| Fișier | oop_3.cpp | Dimensiune | 1.13 KB |
| Data încărcării | 14 Mai 2026, 20:53 | Scor/rezultat | Eroare de compilare |
oop_3.cpp:7:5: error: ‘nod’ does not name a type 7 | nod *vf; | ^~~ oop_3.cpp: In member function ‘void Stiva::Push(int)’: oop_3.cpp:12:9: error: ‘nod’ was not declared in this scope 12 | nod* nou= new nod; | ^~~ oop_3.cpp:12:14: error: ‘nou’ was not declared in this scope 12 | nod* nou= new nod; | ^~~ oop_3.cpp:12:23: error: ‘nod’ does not name a type 12 | nod* nou= new nod; | ^~~ oop_3.cpp:14:18: error: ‘vf’ was not declared in this scope 14 | nou->adr=vf; | ^~ oop_3.cpp: In member function ‘void Stiva::Pop()’: oop_3.cpp:20:9: error: ‘nod’ was not declared in this scope 20 | nod*q=vf; | ^~~ oop_3.cpp:20:13: error: ‘q’ was not declared in this scope 20 | nod*q=vf; | ^ oop_3.cpp:20:15: error: ‘vf’ was not declared in this scope 20 | nod*q=vf; | ^~ oop_3.cpp:22:9: error: type ‘<type error>’ argument given to ‘delete’, expected pointer 22 | delete q; | ^~~~~~~~ oop_3.cpp: In member function ‘int Stiva::Top()’: oop_3.cpp:28:12: error: ‘vf’ was not declared in this scope 28 | if(vf==NULL) return -1; | ^~ oop_3.cpp: In member function ‘int Stiva::Max()’: oop_3.cpp:35:9: error: ‘nod’ was not declared in this scope 35 | nod *q=vf; | ^~~ oop_3.cpp:35:14: error: ‘q’ was not declared in this scope 35 | nod *q=vf; | ^ oop_3.cpp:35:16: error: ‘vf’ was not declared in this scope 35 | nod *q=vf; | ^~ oop_3.cpp: In member function ‘int Stiva::Empty()’: oop_3.cpp:56:12: error: ‘vf’ was not declared in this scope 56 | if(vf==NULL) return 1; | ^~ oop_3.cpp: In member function ‘int Stiva::Max()’: oop_3.cpp:51:5: warning: control reaches end of non-void function [-Wreturn-type] 51 | } | ^
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ă.