Borderou de evaluare (job #1817745)
Utilizator | Data | 28 noiembrie 2016 13:28:59 | |
---|---|---|---|
Problema | Critice | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:9:56: error: ‘int fmin’ redeclared as different kind of symbol
int sz,c[1000000],C[1001][1001],F[1001][1001],k,i,flow,fmin,n,m,father[1001],x,y,cst,start,finish,vz[1001],nod2,nod1;
^
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/iostream: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 bfs()’:
user.cpp:30:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(k=0; k<v[nod].size(); k++)
^
user.cpp: In function ‘void cauta(int, int)’:
user.cpp:46:23: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
if(mu[i].x==a && mu[i].y==b || (mu[i].x==b && mu[i].y==a))
^
user.cpp: In function ‘void df(int, int)’:
user.cpp:60:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int k=0; k<v[nod].size(); k++)
^
user.cpp: In function ‘int main()’:
user.cpp:95:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(k=0; k<v[n].size(); k++)
^
user.cpp:101:17: error: overloaded function with no contextual type information
fmin=inf;
^
user.cpp:103:46: error: no matching function for call to ‘min(<unresolved overloaded function type>, int&)’
fmin=min(fmin,F[father[i]][i]);
^
user.cpp:103:46: note: candidates are:
In file included from /usr/include/c++/4.8/bits/char_traits.h:39:0,
from /usr/include/c++/4.8/ios:40,
from /usr/include/c++/4.8/ostream:38,
from /usr/include/c++/4.8/iostream:39,
from user.cpp:1:
/usr/include/c++/4.8/bits/stl_algobase.h:193:5: note: const _Tp& std::min(const _Tp&, const _Tp&) [with _Tp = int]
min(const _Tp& __a, const _Tp& __b)
^
/usr/include/c++/4.8/bits/stl_algobase.h:193:5: note: no known conversion for argument 1 from ‘<unresolved overloaded function type>’ to ‘const int&’
/usr/include/c++/4.8/bits/stl_algobase.h:239:5: note: template<class _Tp, class _Compare> const _Tp& std::min(const _Tp&, const _Tp&, _Compare)
min(const _Tp& __a, const _Tp& __b, _Compare __comp)
^
/usr/include/c++/4.8/bits/stl_algobase.h:239:5: note: template argument deduction/substitution failed:
user.cpp:103:46: note: candidate expects 3 arguments, 2 provided
fmin=min(fmin,F[father[i]][i]);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !