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 | #26806603 | Utilizator | |
Fișier | oop_3.cpp | Dimensiune | 739 B |
Data încărcării | 17 Decembrie 2020, 00:55 | Scor / rezultat | Eroare de compilare |
oop_3.cpp: In function 'void Push(int)': oop_3.cpp:6:9: error: 'a' was not declared in this scope a[varf++] = x; ^ oop_3.cpp:6:11: error: 'varf' was not declared in this scope a[varf++] = x; ^ oop_3.cpp: In function 'void Pop()': oop_3.cpp:11:9: error: 'varf' was not declared in this scope varf--; ^ oop_3.cpp: In function 'int Top()': oop_3.cpp:17:13: error: 'varf' was not declared in this scope if (varf < 0 ) return -1; ^ oop_3.cpp:18:8: error: 'a' was not declared in this scope return a[varf]; ^ oop_3.cpp:18:10: error: 'varf' was not declared in this scope return a[varf]; ^ oop_3.cpp: In function 'int Max()': oop_3.cpp:24:12: error: 'varf' was not declared in this scope if (varf < 0 ) return -1; ^ oop_3.cpp:25:14: error: 'a' was not declared in this scope int mx=a[0]; ^ oop_3.cpp:26:24: error: 'varf' was not declared in this scope for ( int i = 0 ; i <= varf ; i++ ) ^ oop_3.cpp: In function 'int Empty()': oop_3.cpp:34:13: error: 'varf' was not declared in this scope if (varf > -1 ) return 11; ^ oop_3.cpp: In function 'int main()': oop_3.cpp:44:5: error: 'Stiva' was not declared in this scope Stiva w; ^ oop_3.cpp:44:11: error: expected ';' before 'w' Stiva w; ^ oop_3.cpp:52:13: error: 'w' was not declared in this scope w.Push(x); ^ oop_3.cpp:55:13: error: 'w' was not declared in this scope w.Pop(); ^ oop_3.cpp:57:21: error: 'w' was not declared in this scope fout << w.Top() << "\n"; ^ oop_3.cpp:59:21: error: 'w' was not declared in this scope fout << w.Max() << "\n"; ^ oop_3.cpp: In function 'int Top()': oop_3.cpp:19: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ă.