Borderou de evaluare (job #1601876)
Utilizator | Data | 16 februarie 2016 12:01:38 | |
---|---|---|---|
Problema | Algoritmul lui Dijkstra | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:8:1: error: ‘vector’ does not name a type
vector <int> cost, pred;
^
user.cpp:9:1: error: ‘vector’ does not name a type
vector <vector<int>>a;
^
user.cpp: In function ‘void citire()’:
user.cpp:16:9: error: ‘a’ was not declared in this scope
a[x][y]=c;
^
user.cpp: In function ‘void drumuri(int)’:
user.cpp:23:12: error: ‘a’ was not declared in this scope
if(a[nodInitial][i]!=0)
^
user.cpp:25:16: error: ‘cost’ was not declared in this scope
if(cost[i]>a[nodInitial][i]+cost[nodInitial])
^
user.cpp:28:17: error: ‘pred’ was not declared in this scope
pred[i]=nodInitial;
^
user.cpp: In function ‘int main()’:
user.cpp:37:26: error: ‘cost’ was not declared in this scope
for(int i=0;i<n;++i) cost[i]=INT_MAX;
^
user.cpp:38:5: error: ‘cost’ was not declared in this scope
cost[1]=0;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !