Borderou de evaluare (job #810611)

Utilizator avatar danihere Daniel Dubrovschi danihere IP ascuns
Problemă Volei (clasa a 8-a) Compilator cpp-32
Rundă lasm_21_02_2025_clasa10 Status evaluat
Dată 21 feb. 2025 19:34:02 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'std::vector<int> slotare(std::vector<int>)': main.cpp:8:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'unsigned int'} [-Wsign-compare] 8 | for(int i = 0; i < a.size(); i++) { | ~~^~~~~~~~~~ main.cpp:9:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'unsigned int'} [-Wsign-compare] 9 | if(i == a.size() - 1) sigma.push_back(max(a[0], a[i])); | ~~^~~~~~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:27:12: error: missing template arguments before 'al' 27 | vector al = slotare(fete); | ^~ main.cpp:31:17: error: 'al' was not declared in this scope; did you mean 'a'? 31 | for(int i : al) { | ^~ | a