Borderou de evaluare (job #839771)

Utilizator avatar DeakDarius HackerPrime DeakDarius IP ascuns
Problemă Capitala Compilator cpp
Rundă Arhiva de probleme Status evaluat
Dată 3 nov. 2025 21:47:47 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int distance(std::vector<std::vector<int> >&, int, int)': main.cpp:23:37: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 23 | for(int j = 0 ; j < adj[fr].size() ; j ++ ){ | ~~^~~~~~~~~~~~~~~~ main.cpp:33:5: error: 'sort' was not declared in this scope; did you mean 'short'? 33 | sort(dist.begin(),dist.end()); | ^~~~ | short main.cpp: In function 'int main()': main.cpp:51:13: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 51 | if(adj[i].size() == 1 ) | ^~ main.cpp:53:16: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 53 | long long mx = - 1 ; | ^~~~