Borderou de evaluare (job #1787945)
Utilizator | Data | 25 octombrie 2016 12:08:42 | |
---|---|---|---|
Problema | Cover | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:8:59: error: ‘int y1’ redeclared as different kind of symbol
int i,n,l,c[1000001],j,v[60001],s,smax,inter,inters,i1,x1,y1,stg;
^
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:243:1: error: previous declaration of ‘double y1(double)’
__MATHCALL (y1,, (_Mdouble_));
^
user.cpp: In function ‘int main()’:
user.cpp:38:11: error: assignment of function ‘double y1(double)’
y1=a[i].y;
^
user.cpp:38:11: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment
user.cpp:48:32: error: no matching function for call to ‘min(double (&)(double)throw (), int&)’
y1=min(y1,a[i+i1].y);
^
user.cpp:48:32: 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:2:
/usr/include/c++/4.8/bits/stl_algobase.h:193:5: note: template<class _Tp> const _Tp& std::min(const _Tp&, const _Tp&)
min(const _Tp& __a, const _Tp& __b)
^
/usr/include/c++/4.8/bits/stl_algobase.h:193:5: note: template argument deduction/substitution failed:
user.cpp:48:32: note: deduced conflicting types for parameter ‘const _Tp’ (‘double(double)throw ()’ and ‘int’)
y1=min(y1,a[i+i1].y);
^
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:2:
/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:48:32: note: deduced conflicting types for parameter ‘const _Tp’ (‘double(double)throw ()’ and ‘int’)
y1=min(y1,a[i+i1].y);
^
In file included from /usr/include/c++/4.8/algorithm:62:0,
from user.cpp:3:
/usr/include/c++/4.8/bits/stl_algo.h:4244:5: note: template<class _Tp> _Tp std::min(std::initializer_list<_Tp>)
min(initializer_list<_Tp> __l)
^
/usr/include/c++/4.8/bits/stl_algo.h:4244:5: note: template argument deduction/substitution failed:
user.cpp:48:32: note: mismatched types ‘std::initializer_list<_Tp>’ and ‘double (*)(double)throw ()’
y1=min(y1,a[i+i1].y);
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !