Borderou de evaluare (job #2825107)
Utilizator | Data | 3 ianuarie 2022 23:44:02 | |
---|---|---|---|
Problema | Algoritmul Bellman-Ford | 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:135:13: warning: unused variable 'prim' [-Wunused-variable]
135 | int prim, ultim, i;
| ^~~~
main.cpp:135:19: warning: unused variable 'ultim' [-Wunused-variable]
135 | int prim, ultim, i;
| ^~~~~
main.cpp:135:26: warning: unused variable 'i' [-Wunused-variable]
135 | int prim, ultim, i;
| ^
main.cpp: In member function 'void Graph::getSSCComponents()':
main.cpp:242:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
242 | for(int i = 0; i < sscComponents.size() ;++i){
| ~~^~~~~~~~~~~~~~~~~~~~~~
main.cpp:230:13: warning: unused variable 'sscCounter' [-Wunused-variable]
230 | int sscCounter = 0;
| ^~~~~~~~~~
main.cpp: In member function 'void Graph::BCComponents()':
main.cpp:296:29: error: 'unique' was not declared in this scope
296 | component.erase(unique(component.begin(), component.end()), component.end());
| ^~~~~~
main.cpp: In static member function 'static bool Graph::graphExists(std::vector<int>&)':
main.cpp:328:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
328 | if ( firstEl > a.size() ) return false;
| ~~~~~~~~^~~~~~~~~~
main.cpp: In member function 'void Graph::bellmanFord(int)':
main.cpp:384:13: warning: unused variable 'edgesLength' [-Wunused-variable]
384 | int edgesLength = this->edges.size();
| ^~~~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !