Borderou de evaluare (job #2807121)
Utilizator | Data | 23 noiembrie 2021 14:03:01 | |
---|---|---|---|
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 'std::vector<int> Graph::getTopologicalSort()':
main.cpp:160:23: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'const int' [-Wsign-compare]
160 | return result.size() == N_NODES ? result : std::vector<int>(); // if cycle => empty
| ~~~~~~~~~~~~~~^~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:526:14: error: no matching function for call to 'Graph::Graph(int&, int&)'
526 | Graph a(N, M);
| ^
main.cpp:34:2: note: candidate: 'Graph::Graph(int)'
34 | Graph(int N) : N_NODES(N), N_EDGES(0) { la.resize(N + 1); li.resize(N + 1); }
| ^~~~~
main.cpp:34:2: note: candidate expects 1 argument, 2 provided
main.cpp:8:7: note: candidate: 'Graph::Graph(const Graph&)'
8 | class Graph {
| ^~~~~
main.cpp:8:7: note: candidate expects 1 argument, 2 provided
main.cpp:8:7: note: candidate: 'Graph::Graph(Graph&&)'
main.cpp:8:7: note: candidate expects 1 argument, 2 provided
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !