Borderou de evaluare (job #2830497)

Utilizator izotova_dIzotova Daria izotova_d Data 9 ianuarie 2022 23:06:46
Problema Srevni Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In member function 'void Graph::dfs(int, int, std::vector<bool>&, std::vector<int>&)': main.cpp:43:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 43 | for (int i = 0; i < this->adj_list[node].size(); i++) | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp: In function 'void srevni()': main.cpp:86:2: error: 'sort' was not declared in this scope; did you mean 'qsort'? 86 | sort(city_cost.begin(), city_cost.end(), sort_func); | ^~~~ | qsort main.cpp:104:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 104 | for (int i = 1; i < final_costs.size(); i++) | ~~^~~~~~~~~~~~~~~~~~~~ Non zero exit status: 1

Ceva nu functioneaza?