Borderou de evaluare (job #1373705)

Utilizator Juve45UAIC Alexandru Ionita Juve45 Data 4 martie 2015 20:13:00
Problema Algoritmul Bellman-Ford Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void dijkstra(int)’: user.cpp:26:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0;i<v[x].size();++i) ^ user.cpp:28:15: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses] if( d[ v[x][i].x ] > d[x] + v[x][i].y ) ^ user.cpp: In function ‘int main()’: user.cpp:48:41: error: ‘freoepn’ was not declared in this scope freoepn("bellmanford.in", "r", stdin); ^ user.cpp:55:38: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%i %i %i", &a, &b, &c); ^

Ceva nu functioneaza?