Borderou de evaluare (job #1134697)
Utilizator | Rad Emanuel RadEmanuel | Data | 6 martie 2014 20:35:25 |
---|---|---|---|
Problema | Flux maxim | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:15:17: error: ‘int fmin’ redeclared as different kind of symbol
int n,m,i,x,y,c,fmin,flux,nod;
^
In file included from /usr/include/features.h:346:0,
from /usr/local/include/c++/4.8.0/i686-pc-linux-gnu/bits/os_defines.h:39,
from /usr/local/include/c++/4.8.0/i686-pc-linux-gnu/bits/c++config.h:420,
from /usr/local/include/c++/4.8.0/iosfwd:38,
from /usr/local/include/c++/4.8.0/ios:38,
from /usr/local/include/c++/4.8.0/istream:38,
from /usr/local/include/c++/4.8.0/fstream:38,
from user.cpp:1:
/usr/include/bits/mathcalls.h:342:1: error: previous declaration of ‘double fmin(double, double)’
__MATHCALL (fmin,, (_Mdouble_ __x, _Mdouble_ __y));
^
user.cpp: In function ‘int main()’:
user.cpp:61:17: error: overloaded function with no contextual type information
fmin=INF;
^
user.cpp:63:53: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator>’
if(fmin>cap[dad[i]][i]-flx[dad[i]][i])
^
user.cpp:64:25: error: overloaded function with no contextual type information
fmin=cap[dad[i]][i]-flx[dad[i]][i];
^
user.cpp:65:20: error: cannot resolve overloaded function ‘fmin’ based on conversion to type ‘bool’
if(fmin)
^
user.cpp:69:35: error: invalid operands of types ‘int’ and ‘<unresolved overloaded function type>’ to binary ‘operator+’
flx[dad[i]][i]+=fmin;
^
user.cpp:69:35: error: in evaluation of ‘operator+=(int, <unresolved overloaded function type>)’
user.cpp:70:35: error: invalid operands of types ‘int’ and ‘<unresolved overloaded function type>’ to binary ‘operator-’
flx[i][dad[i]]-=fmin;
^
user.cpp:70:35: error: in evaluation of ‘operator-=(int, <unresolved overloaded function type>)’
user.cpp:72:21: error: invalid operands of types ‘int’ and ‘<unresolved overloaded function type>’ to binary ‘operator+’
flux+=fmin;
^
user.cpp:72:21: error: in evaluation of ‘operator+=(int, <unresolved overloaded function type>)’
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !