Borderou de evaluare (job #1105535)

Utilizator mircea.dobreanuMircea Dobreanu mircea.dobreanu Data 11 februarie 2014 21:00:25
Problema Algoritmul lui Dijkstra Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In member function ‘bool compare::operator()(const int&, const int&)’: user.cpp:16:10: error: ‘d’ was not declared in this scope return d[a]>d[b]; ^ user.cpp: In function ‘void write()’: user.cpp:37:7: error: ‘d’ was not declared in this scope if (d[i]==INF) ^ user.cpp: In function ‘void dijkstra(int)’: user.cpp:46:22: error: ‘d’ was not declared in this scope for (int i=1; i<=n; d[i]=INF, ++i); ^ user.cpp:47:2: error: ‘d’ was not declared in this scope d[src]=0; ^ user.cpp: In function ‘int main()’: user.cpp:71:8: error: ‘solve’ was not declared in this scope solve(); ^ user.cpp: In member function ‘bool compare::operator()(const int&, const int&)’: user.cpp:17:2: warning: control reaches end of non-void function [-Wreturn-type] } ^

Ceva nu functioneaza?