Borderou de evaluare (job #1519544)

Utilizator patrutoiuandreipatrutoiu andrei patrutoiuandrei Data 7 noiembrie 2015 14:40:23
Problema Critice Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:14:15: error: ‘int fmin’ redeclared as different kind of symbol int n,m,i,nod,fmin,flow,a,b,cost,c[NDIM][NDIM],q[NDIM*NDIM],x1,nflow,nrm,x2,f[NDIM][NDIM],much[MDIM][2],par[NDIM],fiu,poz[NDIM][NDIM],sol[MDIM],nr; ^ 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:343:1: error: previous declaration of ‘double fmin(double, double)’ __MATHCALL (fmin,, (_Mdouble_ __x, _Mdouble_ __y)); ^ user.cpp: In function ‘int maxflow(int)’: user.cpp:46:17: error: overloaded function with no contextual type information fmin=INF; ^ user.cpp:52:57: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator>’ if(fmin>c[par[nod]][nod]-f[par[nod]][nod]) ^ user.cpp:54:25: error: overloaded function with no contextual type information fmin=c[par[nod]][nod]-f[par[nod]][nod]; ^ user.cpp:59:22: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator==’ if(fmin==0) continue; ^ user.cpp:67:33: error: invalid operands of types ‘int’ and ‘<unresolved overloaded function type>’ to binary ‘operator+’ f[par[nod]][nod]+=fmin; ^ user.cpp:67:33: error: in evaluation of ‘operator+=(int, <unresolved overloaded function type>)’ user.cpp:68:33: error: invalid operands of types ‘int’ and ‘<unresolved overloaded function type>’ to binary ‘operator-’ f[nod][par[nod]]-=fmin; ^ user.cpp:68:33: error: in evaluation of ‘operator-=(int, <unresolved overloaded function type>)’ user.cpp:70:17: error: invalid operands of types ‘int’ and ‘<unresolved overloaded function type>’ to binary ‘operator+’ flow+=fmin; ^ user.cpp:70:17: error: in evaluation of ‘operator+=(int, <unresolved overloaded function type>)’

Ceva nu functioneaza?