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 | #24082978 | Utilizator | |
Fișier | oop_3.cpp | Dimensiune | 911 B |
Data încărcării | 26 Septembrie 2020, 11:48 | Scor / rezultat | Eroare de compilare |
oop_3.cpp:7:2: error: 'date' does not name a type date* stack = new date[1000001]; ^ oop_3.cpp: In member function 'void Stiva::Push(int)': oop_3.cpp:12:26: error: missing template arguments before '[' token if(pointer == -1) stack[++pointer] = { .val = x, .val_max = x }; ^ oop_3.cpp:13:13: error: missing template arguments before '[' token else stack[++pointer] = { .val = x, .val_max = (stack[pointer].val_max > x ? stack[pointer].val_max : x) }; ^ oop_3.cpp:13:56: error: missing template arguments before '[' token else stack[++pointer] = { .val = x, .val_max = (stack[pointer].val_max > x ? stack[pointer].val_max : x) }; ^ oop_3.cpp:13:85: error: missing template arguments before '[' token else stack[++pointer] = { .val = x, .val_max = (stack[pointer].val_max > x ? stack[pointer].val_max : x) }; ^ oop_3.cpp: In member function 'int Stiva::Top()': oop_3.cpp:23:15: error: missing template arguments before '[' token return stack[pointer].val; ^ oop_3.cpp: In member function 'int Stiva::Max()': oop_3.cpp:29:15: error: missing template arguments before '[' token return stack[pointer].val_max; ^ oop_3.cpp: In member function 'int Stiva::Top()': oop_3.cpp:24:2: warning: control reaches end of non-void function [-Wreturn-type] } ^ oop_3.cpp: In member function 'int Stiva::Max()': oop_3.cpp:30:2: 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ă.