Borderou de evaluare (job #1161726)

Utilizator rares96cheseliRares Cheseli rares96cheseli Data 31 martie 2014 13:46:29
Problema Flux maxim de cost minim Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘bool bellman(int)’: user.cpp:25:24: error: ‘cost’ was not declared in this scope if (D[nod]+cost[nod][*it]<D[*it] && cap[nod][*it]>flow[nod][*it]) ^ user.cpp: In function ‘int main()’: user.cpp:39:37: error: ‘cost’ was not declared in this scope f>>x>>y>>z>>c; cap[x][y]=z; cost[x][y]=c; cost[y][x]=-c; ^ user.cpp: In function ‘bool bellman(int)’: user.cpp:32:1: warning: control reaches end of non-void function [-Wreturn-type] } ^

Ceva nu functioneaza?