Borderou de evaluare (job #3125205)
Utilizator | Data | 2 mai 2023 11:56:42 | |
---|---|---|---|
Problema | Algoritmul lui Dijkstra | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:14:9: error: 'node' was not declared in this scope
14 | vector <node> v[nmax];
| ^~~~
main.cpp:14:13: error: template argument 1 is invalid
14 | vector <node> v[nmax];
| ^
main.cpp:14:13: error: template argument 2 is invalid
main.cpp: In function 'int main()':
main.cpp:26:9: error: 'node' was not declared in this scope
26 | node usu;
| ^~~~
main.cpp:27:9: error: 'usu' was not declared in this scope
27 | usu.cost = c;
| ^~~
main.cpp:29:14: error: request for member 'push_back' in 'v[x]', which is of non-class type 'int'
29 | v[x].push_back(usu);
| ^~~~~~~~~
main.cpp:31:14: error: request for member 'push_back' in 'v[y]', which is of non-class type 'int'
31 | v[y].push_back(usu);
| ^~~~~~~~~
main.cpp:41:36: error: request for member 'size' in 'v[nod]', which is of non-class type 'int'
41 | for (int i = 0; i < v[nod].size(); ++i)
| ^~~~
main.cpp:43:13: error: 'node' was not declared in this scope; did you mean 'nod'?
43 | node it = v[nod][i];
| ^~~~
| nod
main.cpp:44:17: error: 'it' was not declared in this scope; did you mean 'i'?
44 | if (it.cost + d[nod] < d[it.nod])
| ^~
| i
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !