Borderou de evaluare (job #3270508)

Utilizator BiceaToader David Stefan Bicea Data 23 ianuarie 2025 16:29:19
Problema Algoritmul Bellman-Ford Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void djk(int)': main.cpp:15:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 15 | for(int i=1;i<=n;i++) | ^~~ main.cpp:17:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 17 | d[ns]=0; | ^ main.cpp:25:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 25 | for(int i=0;i<v[nod].size();i++) | ~^~~~~~~~~~~~~~ main.cpp:36:5: error: 'g' was not declared in this scope 36 | g<<"Ciclu negativ!"; | ^ Non zero exit status: 1

Ceva nu functioneaza?