Borderou de evaluare (job #716255)

Utilizator avatar sorin21948 Marian Sorin sorin21948 IP ascuns
Problemă Expr (clasele 7-8) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 23 apr. 2023 10:55:30 Scor 0

Raport evaluator

Eroare de compilare: main.cpp:13:5: error: ISO C++ forbids declaration of 'PushBack' with no type [-fpermissive] 13 | PushBack(T new_element) | ^~~~~~~~ main.cpp:23:5: error: ISO C++ forbids declaration of 'Resize' with no type [-fpermissive] 23 | Resize(size_t new_capacity) | ^~~~~~ main.cpp: In member function 'int Vec<T>::PushBack(T)': main.cpp:20:5: warning: no return statement in function returning non-void [-Wreturn-type] 20 | } | ^ main.cpp: In member function 'int Vec<T>::Resize(size_t)': main.cpp:34:5: warning: no return statement in function returning non-void [-Wreturn-type] 34 | } | ^