Borderou de evaluare (job #2918468)

Utilizator cincadavidCinca David Andrei cincadavid Data 11 august 2022 16:19:24
Problema Autobuze Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void BFS(int, int)': main.cpp:25:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 25 | for(int k=0;k<g[i].size();k++) | ~^~~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:51:24: error: 'sqrt' was not declared in this scope 51 | for(int d=2;d<=sqrt(v[i]);d++) | ^~~~ main.cpp:53:13: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 53 | if(v[i]%d==0); | ^~ main.cpp:54:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | { | ^ Non zero exit status: 1

Ceva nu functioneaza?