Borderou de evaluare (job #756742)

Utilizator avatar Flaviuuu Dimitriu Flaviu Flaviuuu IP ascuns
Problemă Tunel (clasa a 8-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 21 ian. 2024 19:40:21 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:27:28: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'unsigned int'} [-Wsign-compare] 27 | if(i + pas < tunnels[col].size() && tunnels[col][i + pas] <= lin) | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ main.cpp:55:17: warning: unused variable 'pas' [-Wunused-variable] 55 | int pas = 1 << 14, i = -1; | ^~~ main.cpp:55:32: warning: unused variable 'i' [-Wunused-variable] 55 | int pas = 1 << 14, i = -1; | ^ main.cpp:57:15: error: 'pas' was not declared in this scope 57 | while(pas){ | ^~~ main.cpp:58:16: error: 'i' was not declared in this scope 58 | if(i + pas < tunnels[col].size() && tunnels[col][i+pas] <= lin) | ^ main.cpp:62:12: error: 'i' was not declared in this scope 62 | if(i >= 0) | ^ main.cpp:81:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'unsigned int'} [-Wsign-compare] 81 | if(i + pas < tunnels[col].size() && tunnels[col][i+pas]<=lin) | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ main.cpp:94:15: error: 'minsteps' was not declared in this scope; did you mean 'ministeps'? 94 | fout<<min(minsteps, nosteps+1); | ^~~~~~~~ | ministeps