Borderou de evaluare (job #2821925)
Utilizator | Data | 23 decembrie 2021 12:37:30 | |
---|---|---|---|
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::BFS(int&)':
main.cpp:162:28: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
162 | for ( int i = 0; i < adjacencyList[x].size(); i++ )
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp: In member function 'void Graph::DFS(int, bool*)':
main.cpp:187:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
187 | for ( int i = 0; i < adjacencyList[Start_Node].size(); i++ )
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp: In member function 'bool Graph::Hakimi(std::vector<int>, int)':
main.cpp:367:24: warning: comparison of integer expressions of different signedness: '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
367 | if ( values[0] > values.size() - 1 ) return 0;
main.cpp: In member function 'void Graph::RoyFloyd(int (*)[105])':
main.cpp:693:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
693 | for ( int j = 1; j <= N; j++ )
| ^~~
main.cpp:695:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
695 | fout << "\n";
| ^~~~
main.cpp: In member function 'void Graph::Eulerian_Cycle()':
main.cpp:796:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
796 | for ( int i = 0; i < solutions.size() - 1; i++ )
| ~~^~~~~~~~~~~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:827:43: error: cannot convert 'int [100001]' to 'bool*'
827 | G.DFS_BiconnectedComponents(1, 0, visited, up, levels);
| ^~~~~~~
| |
| int [100001]
main.cpp:216:68: note: initializing argument 3 of 'void Graph::DFS_BiconnectedComponents(int, int, bool*, int*, int*)'
216 | void Graph :: DFS_BiconnectedComponents(int node, int parent, bool visited[], int up[], int levels[])
| ~~~~~^~~~~~~~~
main.cpp: In member function 'bool Graph::Hakimi(std::vector<int>, int)':
main.cpp:380:1: warning: control reaches end of non-void function [-Wreturn-type]
380 | }
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !