Borderou de evaluare (job #2832153)

Utilizator gogurazvanRazvan Gogu gogurazvan Data 12 ianuarie 2022 23:04:01
Problema Transport2 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int citireM(int, int&)': main.cpp:22:5: warning: no return statement in function returning non-void [-Wreturn-type] 22 | } | ^ main.cpp: In function 'bool BFS(int&, int&, int&)': main.cpp:38:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 38 | for(int i=0; i<vecin[nod].size(); ++i){ | ~^~~~~~~~~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:62:16: error: cannot bind non-const lvalue reference of type 'int&' to an rvalue of type 'int' 62 | if(BFS(1,n,cc)==true){ | ^ main.cpp:24:19: note: initializing argument 1 of 'bool BFS(int&, int&, int&)' 24 | bool BFS(int &s,int &n,int &c_max){ | ~~~~~^ Non zero exit status: 1

Ceva nu functioneaza?