Borderou de evaluare (job #2075354)
Utilizator | Data | 25 noiembrie 2017 12:57:21 | |
---|---|---|---|
Problema | Zoo | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:15:15: error: ‘int y1’ redeclared as different kind of symbol
int n, m, x1, y1, x2, y2, st, dr;
^
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/utility:68,
from /usr/include/c++/4.8/algorithm:60,
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:55:8: error: cannot bind ‘std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}’ lvalue to ‘std::basic_istream<char>&&’
in >> x1 >> y1 >> x2 >> y2;
^
In file included from /usr/include/c++/4.8/iostream:40:0,
from user.cpp:2:
/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)
^
In file included from /usr/include/c++/4.8/algorithm:61:0,
from user.cpp:1:
/usr/include/c++/4.8/bits/stl_algobase.h: In instantiation of ‘_ForwardIterator std::lower_bound(_ForwardIterator, _ForwardIterator, const _Tp&) [with _ForwardIterator = __gnu_cxx::__normal_iterator<int*, std::vector<int> >; _Tp = double(double)throw ()]’:
user.cpp:36:108: required from here
/usr/include/c++/4.8/bits/stl_algobase.h:965:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if (*__middle < __val)
^
/usr/include/c++/4.8/bits/stl_algobase.h: In instantiation of ‘_ForwardIterator std::lower_bound(_ForwardIterator, _ForwardIterator, const _Tp&) [with _ForwardIterator = std::pair<int, int>*; _Tp = std::pair<int, double (*)(double)throw ()>]’:
user.cpp:56:57: required from here
/usr/include/c++/4.8/bits/stl_algobase.h:965:18: error: no match for ‘operator<’ (operand types are ‘std::pair<int, int>’ and ‘const std::pair<int, double (*)(double)throw ()>’)
/usr/include/c++/4.8/bits/stl_algobase.h:965:18: note: candidates are:
In file included from /usr/include/c++/4.8/utility:70:0,
from /usr/include/c++/4.8/algorithm:60,
from user.cpp:1:
/usr/include/c++/4.8/bits/stl_pair.h:220:5: note: template<class _T1, class _T2> constexpr bool std::operator<(const std::pair<_T1, _T2>&, const std::pair<_T1, _T2>&)
operator<(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
^
/usr/include/c++/4.8/bits/stl_pair.h:220:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/4.8/algorithm:61:0,
from user.cpp:1:
/usr/include/c++/4.8/bits/stl_algobase.h:965:18: note: deduced conflicting types for parameter ‘_T2’ (‘int’ and ‘double (*)(double)throw ()’)
if (*__middle < __val)
^
In file included from /usr/include/c++/4.8/bits/stl_algobase.h:67:0,
from /usr/include/c++/4.8/algorithm:61,
from user.cpp:1:
/usr/include/c++/4.8/bits/stl_iterator.h:297:5: note: template<class _Iterator> bool std::operator<(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_Iterator>&)
operator<(const reverse_iterator<_Iterator>& __x,
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !