Borderou de evaluare (job #2423886)
Utilizator | Data | 22 mai 2019 08:59:16 | |
---|---|---|---|
Problema | Algoritmul Bellman-Ford | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int dijkstra(int)':
main.cpp:43:24: error: 'grad' was not declared in this scope
int cost = grad[nodCurent][i].second;
^~~~
main.cpp:44:30: error: invalid types 'int[int]' for array subscript
if(cost[nodCurent] + cost < cost[vecin])
^
main.cpp:44:51: error: invalid types 'int[int]' for array subscript
if(cost[nodCurent] + cost < cost[vecin])
^
main.cpp:46:27: error: invalid types 'int[int]' for array subscript
cost[vecin] = cost[nodCurent] + cost;
^
main.cpp:46:45: error: invalid types 'int[int]' for array subscript
cost[vecin] = cost[nodCurent] + cost;
^
main.cpp:47:34: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
if(viz[vecin] = 0)
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !