Borderou de evaluare (job #2822159)
Utilizator | Data | 23 decembrie 2021 17:33:16 | |
---|---|---|---|
Problema | Parcurgere DFS - componente conexe | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In member function 'void Graph_Solver::dfs_biconex(int, int)':
main.cpp:45:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
45 | for(int i = 0; i < v[nod].size(); ++i)
| ~~^~~~~~~~~~~~~~~
main.cpp: In member function 'void Graph_Solver::solve_biconex()':
main.cpp:86:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
86 | for(int j = 0; j < sol[i].size(); ++j)
| ~~^~~~~~~~~~~~~~~
main.cpp: In member function 'void Graph_Solver::solve_scc()':
main.cpp:124:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
124 | for(int j = 0; j < sol[i].size(); ++j)
| ~~^~~~~~~~~~~~~~~
main.cpp: In member function 'void Graph_Solver::solve_toposort()':
main.cpp:142:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
142 | for (int j = 0; j < v[p].size(); j++)
| ~~^~~~~~~~~~~~~
main.cpp: In member function 'int Graph_Solver::maxflow()':
main.cpp:443:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
443 | for (int j = 0; j < v[nod].size(); j++)
| ~~^~~~~~~~~~~~~~~
main.cpp:453:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
453 | for (int i=0;i<v[n].size();i++)
| ~^~~~~~~~~~~~
main.cpp: In member function 'void Graph_Solver::euler_cycle()':
main.cpp:576:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
576 | for(int i = 0; i < sol.size(); ++i)
| ~~^~~~~~~~~~~~
main.cpp: In member function 'bool Graph_Solver::dfs_m(int)':
main.cpp:620:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
620 | for(int i = 0; i < v[nod].size(); i++)
| ~~^~~~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:674:12: error: no matching function for call to 'Graph_Solver::citire()'
674 | gr.citire();
| ^
main.cpp:176:8: note: candidate: 'void Graph_Solver::citire(int, int)'
176 | void citire(int pr, int tip)
| ^~~~~~
main.cpp:176:8: note: candidate expects 2 arguments, 0 provided
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !