Borderou de evaluare (job #1480771)
Utilizator | Data | 3 septembrie 2015 09:33:56 | |
---|---|---|---|
Problema | Fear | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:8:39: error: ‘double fmin’ redeclared as different kind of symbol
double C[205][205],F[205][205],z,flow,fmin;
^
In file included from /usr/include/features.h:357:0,
from /usr/include/stdio.h:28,
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 BF()’:
user.cpp:19:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(j=0;j<G[nod].size();j++) {
^
user.cpp: In function ‘int main()’:
user.cpp:33:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i=0;i<G[N].size();i++) {
^
user.cpp:34:9: error: ‘nod’ was not declared in this scope
nod=G[N][i];
^
user.cpp:37:23: error: overloaded function with no contextual type information
TT[N]=nod,fmin=I;
^
user.cpp:39:26: error: invalid operands of types ‘double’ and ‘<unresolved overloaded function type>’ to binary ‘operator*’
fmin=min(1.0*fmin,C[TT[nod]][nod]-F[TT[nod]][nod]);
^
user.cpp:40:18: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘double’ to binary ‘operator==’
if(fmin==0.0)
^
user.cpp:44:13: error: invalid operands of types ‘double’ and ‘<unresolved overloaded function type>’ to binary ‘operator+’
flow+=fmin;
^
user.cpp:44:13: error: in evaluation of ‘operator+=(double, <unresolved overloaded function type>)’
user.cpp:29:84: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("fear.in","r",stdin),freopen("fear.out","w",stdout),scanf("%d%d",&N,&M);
^
user.cpp:29:84: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
user.cpp:29:84: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
user.cpp:31:86: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%lf",&x,&y,&z),C[x][y]+=log(z),G[x].push_back(y),G[y].push_back(x);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !