Borderou de evaluare (job #3229909)

Utilizator trelowIurciuc Denis trelow Data 17 mai 2024 23:44:32
Problema Graph Cycle Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:24:21: error: 'has_cicle' was not declared in this scope; did you mean 'hascicle'? 24 | bool hascicle = has_cicle(adj, n); | ^~~~~~~~~ | hascicle main.cpp: In function 'bool has_cicle(std::vector<int>*, int)': main.cpp:37:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 37 | for (int j = 0; j < adj[i].size(); j++) | ~~^~~~~~~~~~~~~~~ main.cpp:60:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 60 | for (int i = 0; i < adj[u].size(); i++) | ~~^~~~~~~~~~~~~~~ Non zero exit status: 1

Ceva nu functioneaza?