Borderou de evaluare (job #2011060)
Utilizator | Data | 14 august 2017 23:56:36 | |
---|---|---|---|
Problema | Figuri | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:9:39: error: ‘int y1’ redeclared as different kind of symbol
int n, nr, i, j, i2, a, b, c, x1, x2, y1, y2, px, py, k, mx, mx2, f[410][410], p[410][410];
^
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 ‘int main()’:
user.cpp:35:13: error: cannot bind ‘std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}’ lvalue to ‘std::basic_istream<char>&&’
fin >> x1 >> y1 >> x2 >> y2 >> c;
^
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:38:33: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if (y1 < 0) y1 = b-(b/2+y1);
^
user.cpp:38:35: error: invalid operands of types ‘int’ and ‘double (*)(double)throw ()’ to binary ‘operator-’
if (y1 < 0) y1 = b-(b/2+y1);
^
user.cpp:39:23: error: invalid operands of types ‘int’ and ‘double(double)throw ()’ to binary ‘operator-’
else y1 = b/2-y1;
^
user.cpp:47:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if (y1 < y2) px = 1;
^
user.cpp:50:11: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive]
i = y1;
^
user.cpp:59:22: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if (y2 > y1) i++;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !