Borderou de evaluare (job #1129616)

Utilizator gigamhzAndrei gigamhz Data 28 februarie 2014 00:05:00
Problema Algoritmul lui Dijkstra Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:9:15: warning: overflow in implicit constant conversion [-Woverflow] const int INF=1.e20; ^ user.cpp:17:19: error: expected ‘]’ before numeric constant vector<graf> a[50 000]; ^ user.cpp:18:13: error: expected ‘]’ before numeric constant int best[50 000],c[50 000]; ^ user.cpp: In function ‘void citire()’: user.cpp:26:5: error: ‘a’ was not declared in this scope a[y].push_back(y1); ^ user.cpp: In function ‘void dijkstra(int)’: user.cpp:36:1: error: ‘c’ was not declared in this scope c[1]=nod; ^ user.cpp:39:15: error: ‘a’ was not declared in this scope for(i=0;i<a[c[p]].size();i++){ ^ user.cpp:40:12: error: ‘best’ was not declared in this scope if(best[a[c[p]][i].x]> a[c[p]][i].cost+best[c[p]]){ ^ user.cpp:51:21: error: ‘best’ was not declared in this scope for(i=2;i<=n;i++)g<<best[i]<<" "; ^ user.cpp: In function ‘int main()’: user.cpp:59:9: error: ‘best’ was not declared in this scope best[i]=INF; ^ user.cpp:60:5: error: ‘best’ was not declared in this scope best[nodr]=0; ^

Ceva nu functioneaza?