Borderou de evaluare (job #1205185)

Utilizator IonMosnoiIon Mosnoi IonMosnoi Data 5 iulie 2014 16:46:27
Problema Flux maxim de cost minim Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:10:111: error: ‘int fmax’ redeclared as different kind of symbol int n,m,s,d, semn[1009],retea[1009][1009],flux[1009][1009],parc[1009],venit[1009],ok,cost[600][600],dist[600],fmax=inf; ^ In file included from /usr/include/features.h:357:0, from /usr/include/i386-linux-gnu/c++/4.8/bits/os_defines.h:39, from /usr/include/i386-linux-gnu/c++/4.8/bits/c++config.h:420, from /usr/include/c++/4.8/iosfwd:38, from /usr/include/c++/4.8/ios:38, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from user.cpp:1: /usr/include/i386-linux-gnu/bits/mathcalls.h:340:1: error: previous declaration of ‘double fmax(double, double)’ __MATHCALL (fmax,, (_Mdouble_ __x, _Mdouble_ __y)); ^ user.cpp: In function ‘void df(int, int, int)’: user.cpp:29:11: error: overloaded function with no contextual type information fmax = v; ^ user.cpp:33:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0;i<a[nod].size();i++) ^ user.cpp:40:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0;i<b[nod].size();i++) ^ user.cpp: In function ‘int main()’: user.cpp:62:8: error: overloaded function with no contextual type information fmax = inf;stop = 0; ^ user.cpp:67:12: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘const int’ to binary ‘operator!=’ if(fmax!=inf){ ^ user.cpp:68:20: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator*’ sol+=fmax*dist[d]; ^ user.cpp:69:24: error: cannot resolve overloaded function ‘fmax’ based on conversion to type ‘int’ marc(d,venit[d],fmax); ^

Ceva nu functioneaza?