Borderou de evaluare (job #3335308)
| Utilizator | Data | 22 ianuarie 2026 12:13:59 | |
|---|---|---|---|
| Problema | Algoritmul Bellman-Ford | Status | done |
| Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp:14:57: error: 'Node' was not declared in this scope
14 | vector<int> BellmanFord(int start, int n, vector<vector<Node>> &listaVecini)
| ^~~~
main.cpp:14:57: error: template argument 1 is invalid
main.cpp:14:57: error: template argument 2 is invalid
main.cpp:14:61: error: template argument 1 is invalid
14 | vector<int> BellmanFord(int start, int n, vector<vector<Node>> &listaVecini)
| ^~
main.cpp:14:61: error: template argument 2 is invalid
main.cpp: In function 'std::vector<int> BellmanFord(int, int, int&)':
main.cpp:30:14: error: 'Node' was not declared in this scope
30 | for (Node v : listaVecini[nod])
| ^~~~
main.cpp:42:5: error: expected primary-expression before '}' token
42 | }
| ^
main.cpp:41:10: error: expected ';' before '}' token
41 | }
| ^
| ;
42 | }
| ~
main.cpp:42:5: error: expected primary-expression before '}' token
42 | }
| ^
main.cpp:41:10: error: expected ')' before '}' token
41 | }
| ^
| )
42 | }
| ~
main.cpp:30:13: note: to match this '('
30 | for (Node v : listaVecini[nod])
| ^
main.cpp:42:5: error: expected primary-expression before '}' token
42 | }
| ^
main.cpp:27:13: warning: unused variable 'nod' [-Wunused-variable]
27 | int nod = Q.front();
| ^~~
main.cpp: In function 'int main()':
main.cpp:51:19: error: 'Node' was not declared in this scope
51 | vector<vector<Node>> listaVecini(n);
| ^~~~
main.cpp:51:19: error: template argument 1 is invalid
main.cpp:51:19: error: template argument 2 is invalid
main.cpp:51:23: error: template argument 1 is invalid
51 | vector<vector<Node>> listaVecini(n);
| ^~
main.cpp:51:23: error: template argument 2 is invalid
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
