Borderou de evaluare (job #2820852)
Utilizator | Data | 21 decembrie 2021 19:15:35 | |
---|---|---|---|
Problema | Ciclu Eulerian | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In static member function 'static bool Graph::eligible(std::vector<int>&)':
main.cpp:221:19: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare]
221 | if (x > n - 1) {
| ~~^~~~~~~
main.cpp: In member function 'void Graph::BFS(std::vector<std::vector<int> >&, int)':
main.cpp:269:35: error: 'inf' was not declared in this scope; did you mean 'ynf'?
269 | vector<int> dist(m_n + 1, inf);
| ^~~
| ynf
main.cpp: In member function 'void Graph::optimalPaths(int, int, std::ostream&)':
main.cpp:312:26: warning: comparison of integer expressions of different signedness: '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} and 'long unsigned int' [-Wsign-compare]
312 | if (check[i] == pathCount) {
main.cpp:320:26: warning: comparison of integer expressions of different signedness: '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} and 'long unsigned int' [-Wsign-compare]
320 | if (check[i] == pathCount) {
main.cpp: In member function 'void Graph::minimumSubtree(int, std::vector<std::pair<std::pair<int, int>, int> >&, std::ostream&)':
main.cpp:395:28: warning: comparison of integer expressions of different signedness: 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
395 | if (sol.size() == n - 1) {
| ~~~~~~~~~~~^~~~~~~~
main.cpp: In member function 'void Graph::dijkstra(std::vector<std::vector<int> >&, std::ostream&)':
main.cpp:419:35: error: 'inf' was not declared in this scope; did you mean 'ynf'?
419 | vector<int> dist(m_n + 1, inf);
| ^~~
| ynf
main.cpp:421:24: error: 'pii' was not declared in this scope
421 | priority_queue<pii, vector<pii>, greater<pii>> heap;
| ^~~
main.cpp:421:39: error: template argument 2 is invalid
421 | priority_queue<pii, vector<pii>, greater<pii>> heap;
| ^
main.cpp:421:53: error: template argument 1 is invalid
421 | priority_queue<pii, vector<pii>, greater<pii>> heap;
| ^~
main.cpp:421:53: error: template argument 2 is invalid
main.cpp:421:53: error: template argument 3 is invalid
main.cpp:424:14: error: request for member 'push' in 'heap', which is of non-class type 'int'
424 | heap.push({0, 1});
| ^~~~
main.cpp:426:22: error: request for member 'empty' in 'heap', which is of non-class type 'int'
426 | while (!heap.empty()) {
| ^~~~~
main.cpp:427:32: error: request for member 'top' in 'heap', which is of non-class type 'int'
427 | int current = heap.top().second;
| ^~~
main.cpp:428:18: error: request for member 'pop' in 'heap', which is of non-class type 'int'
428 | heap.pop();
| ^~~
main.cpp:436:30: error: request for member 'push' in 'heap', which is of non-class type 'int'
436 | heap.push({dist[w], w});
| ^~~~
main.cpp: In member function 'void Graph::bellmanFord(std::vector<std::vector<int> >&, std::ostream&)':
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !