Borderou de evaluare (job #751984)

Utilizator avatar samu Samuel samu IP ascuns
Problemă Gogoși (clasa a 5-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 17 dec. 2023 23:18:23 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:28:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'unsigned int'} [-Wsign-compare] 28 | for (int i = 1; i < people.size(); i++) { | ~~^~~~~~~~~~~~~~~ main.cpp:30:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'unsigned int'} [-Wsign-compare] 30 | for (int j = 0; j < queues.size(); j++) { | ~~^~~~~~~~~~~~~~~ main.cpp:35:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'unsigned int'} [-Wsign-compare] 35 | if (j == queues.size() - 1) { | ~~^~~~~~~~~~~~~~~~~~~~ main.cpp:56:2: error: expected '}' at end of input 56 | } | ^ main.cpp:8:12: note: to match this '{' 8 | int main() { | ^ main.cpp:13:9: warning: unused variable 'ans' [-Wunused-variable] 13 | int ans = 0, temp, lastQueueMember = 0; | ^~~ main.cpp:13:24: warning: unused variable 'lastQueueMember' [-Wunused-variable] 13 | int ans = 0, temp, lastQueueMember = 0; | ^~~~~~~~~~~~~~~