Borderou de evaluare (job #2803729)
Utilizator | Data | 20 noiembrie 2021 13:16:44 | |
---|---|---|---|
Problema | Algoritmul lui Dijkstra | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:5:1: error: expected ',' or ';' before 'vector'
5 | vector<pair<int,int>>g[50001];
| ^~~~~~
main.cpp: In function 'void read()':
main.cpp:16:9: error: 'g' was not declared in this scope
16 | g[x].push_back(make_pair(y,c));
| ^
main.cpp: In function 'int dijkstra()':
main.cpp:29:24: error: 'g' was not declared in this scope
29 | for(int i=0; i<g[Nod].size(); i++)
| ^
main.cpp:32:23: error: 'Cost' was not declared in this scope
32 | if(D[Nod]+Cost<D[Vecin])
| ^~~~
main.cpp:39:1: warning: no return statement in function returning non-void [-Wreturn-type]
39 | }
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !