Borderou de evaluare (job #2907266)

Utilizator Ssebi1Dancau Sebastian Ssebi1 Data 29 mai 2022 14:39:24
Problema Arbore partial de cost minim Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'std::ostream& operator<<(std::ostream&, Graf&)': main.cpp:83:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 83 | for (int j = 1; j < graf.matriceAdiacenta[i].size(); j++) { | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp: In member function 'void Graf::DFS(int, std::vector<int>&)': main.cpp:235:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 235 | for (int i = 1; i < matriceAdiacenta[nod].size(); i++) { // parcurgem nodurile adiacente nodului curent | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp: In member function 'std::vector<std::vector<int> > Graf::muchiiCritice_neeficient()': main.cpp:284:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 284 | for (int j = 1; j < this->matriceAdiacenta[nod].size(); j++) { | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp: In member function 'void Graf::MuchieCritica(int, std::vector<int>&, std::vector<int>&, std::vector<int>&, std::vector<int>&, std::vector<std::vector<int> >&)': main.cpp:323:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 323 | for (int i = 1; i < matriceAdiacenta[nod].size(); i++) { | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp: In member function 'void Graf::sortare_topologica(int, std::vector<int>&, std::vector<int>&)': main.cpp:368:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 368 | for (int i = 1; i < matriceAdiacenta[nod].size(); i++) { | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp: In member function 'void Graf::DFS_darb(int, std::vector<int>&, int&, int&, int&)': main.cpp:525:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 525 | for (int i = 1; i < matriceAdiacenta[nod].size(); i++) { // parcurgem nodurile adiacente nodului curent | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp: In member function 'std::vector<std::vector<int> > Graf::APM(std::vector<std::vector<int> >)': main.cpp:589:5: error: 'sort' was not declared in this scope; did you mean 'qsort'? 589 | sort(muchii.begin(), muchii.end(), compare_vectors_apm()); | ^~~~ | qsort main.cpp:600:23: warning: comparison of integer expressions of different signedness: 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] 600 | while (sol.size() < this->nrNoduri - 1) { | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ main.cpp: In function 'void infoarena_dfs()': main.cpp:641:15: warning: unused variable 'S' [-Wunused-variable] 641 | int N, M, S; | ^ main.cpp: In function 'void leetcode_CriticalConnections()': main.cpp:667:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 667 | for (int i = 0; i < result.size(); i++) { | ~~^~~~~~~~~~~~~~~ main.cpp: In function 'void havel_hakimi(std::vector<int>)': main.cpp:923:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 923 | for (int i = 0; i < grade.size() - 1; i++) { | ~~^~~~~~~~~~~~~~~~~~ main.cpp:924:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 924 | for (int j = i + 1; j < grade.size(); j++) { | ~~^~~~~~~~~~~~~~ main.cpp:941:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 941 | if (grad > grade.size()) { | ~~~~~^~~~~~~~~~~~~~ Non zero exit status: 1

Ceva nu functioneaza?