Borderou de evaluare (job #1947151)
Utilizator | Data | 30 martie 2017 19:37:15 | |
---|---|---|---|
Problema | Reuniune | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:10:13: error: ‘int y1’ redeclared as different kind of symbol
int x1, x2, y1, y2, a1, a2, b1, b2, m1, m2, n1, n2, p1, p2, p3, l1, l2, l3, l4, l5, l6, pt, v1, v2, v3, vt;
^
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/iosfwd:38,
from /usr/include/c++/4.8/ios:38,
from /usr/include/c++/4.8/istream:38,
from /usr/include/c++/4.8/fstream: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 ‘int main()’:
user.cpp:13:13: error: cannot bind ‘std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}’ lvalue to ‘std::basic_istream<char>&&’
f >> x1 >> x2 >> y1 >> y2;
^
In file included from /usr/include/c++/4.8/fstream:38: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:17:17: warning: pointer to a function used in arithmetic [-Wpointer-arith]
l1 = ( y1 - x1 );
^
user.cpp:17:15: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive]
l1 = ( y1 - x1 );
^
user.cpp:30:55: error: no matching function for call to ‘min(double (&)(double)throw (), int&)’
pt = p1 + p2 - abs ( max( x1, a1 ) - min ( y1, b1 ) ) * abs ( max( x2, a2 ) - min ( y2, b2 ) );
^
user.cpp:30:55: 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/istream:38,
from /usr/include/c++/4.8/fstream:38,
from user.cpp:1:
/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:30:55: note: deduced conflicting types for parameter ‘const _Tp’ (‘double(double)throw ()’ and ‘int’)
pt = p1 + p2 - abs ( max( x1, a1 ) - min ( y1, b1 ) ) * abs ( max( x2, a2 ) - min ( y2, b2 ) );
^
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/istream:38,
from /usr/include/c++/4.8/fstream:38,
from user.cpp:1:
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !