Borderou de evaluare (job #1886229)
Utilizator | Data | 20 februarie 2017 19:20:22 | |
---|---|---|---|
Problema | Parc | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:10:14: error: ‘int y1’ redeclared as different kind of symbol
int xp,yp,x1,y1,x2,y2,m,n;
^
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:243:1: error: previous declaration of ‘double y1(double)’
__MATHCALL (y1,, (_Mdouble_));
^
user.cpp: In function ‘void read()’:
user.cpp:27:15: error: cannot bind ‘std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}’ lvalue to ‘std::basic_istream<char>&&’
in>>xp>>yp>>x1>>y1>>x2>>y2>>m;
^
In file included from /usr/include/c++/4.8/iostream:40:0,
from user.cpp:1:
/usr/include/c++/4.8/istream:872:5: error: initializing argument 1 of ‘std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&&, _Tp&) [with _CharT = char; _Traits = std::char_traits<char>; _Tp = double(double)throw ()]’
operator>>(basic_istream<_CharT, _Traits>&& __is, _Tp& __x)
^
user.cpp:26:9: warning: unused variable ‘aux’ [-Wunused-variable]
int aux;
^
user.cpp: In function ‘void solve()’:
user.cpp:45:27: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive]
int x11=x1,x22=x2,y11=y1,y22=y2;
^
user.cpp:85:31: error: no matching function for call to ‘max(int&, double (&)(double)throw ())’
if(pista.ys<=max(y2,y1)&&pista.ys>=min(y1,y2)){
^
user.cpp:85:31: 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:216:5: note: template<class _Tp> const _Tp& std::max(const _Tp&, const _Tp&)
max(const _Tp& __a, const _Tp& __b)
^
/usr/include/c++/4.8/bits/stl_algobase.h:216:5: note: template argument deduction/substitution failed:
user.cpp:85:31: note: deduced conflicting types for parameter ‘const _Tp’ (‘int’ and ‘double(double)throw ()’)
if(pista.ys<=max(y2,y1)&&pista.ys>=min(y1,y2)){
^
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:260:5: note: template<class _Tp, class _Compare> const _Tp& std::max(const _Tp&, const _Tp&, _Compare)
max(const _Tp& __a, const _Tp& __b, _Compare __comp)
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !