Borderou de evaluare (job #2175619)
Utilizator | Data | 16 martie 2018 18:08:52 | |
---|---|---|---|
Problema | Mosia | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:9:9: error: ‘int y0’ redeclared as different kind of symbol
int x0, y0;
^
In file included from /usr/include/features.h:367:0,
from /usr/include/x86_64-linux-gnu/c++/5/32/bits/os_defines.h:39,
from /usr/include/x86_64-linux-gnu/c++/5/32/bits/c++config.h:482,
from /usr/include/c++/5/iosfwd:38,
from /usr/include/c++/5/ios:38,
from /usr/include/c++/5/istream:38,
from /usr/include/c++/5/fstream:38,
from user.cpp:1:
/usr/include/bits/mathcalls.h:250:1: note: previous declaration ‘double y0(double)’
__MATHCALL (y0,, (_Mdouble_));
^
user.cpp: In member function ‘bool Point::operator<(const Point&) const’:
user.cpp:27:39: error: could not convert ‘{x0, y0}’ from ‘<brace-enclosed initializer list>’ to ‘Point’
return Aria({x0, y0}, *this, A) < 0 || (Aria({x0, y0}, *this, A) == 0 && ((y - y0) * (y - A.y) < 0 || (x - x0) * (x - A.x) < 0));
^
user.cpp:27:72: error: could not convert ‘{x0, y0}’ from ‘<brace-enclosed initializer list>’ to ‘Point’
return Aria({x0, y0}, *this, A) < 0 || (Aria({x0, y0}, *this, A) == 0 && ((y - y0) * (y - A.y) < 0 || (x - x0) * (x - A.x) < 0));
^
user.cpp:27:88: error: invalid operands of types ‘const int’ and ‘double(double) throw ()’ to binary ‘operator-’
return Aria({x0, y0}, *this, A) < 0 || (Aria({x0, y0}, *this, A) == 0 && ((y - y0) * (y - A.y) < 0 || (x - x0) * (x - A.x) < 0));
^
user.cpp: In function ‘void Read()’:
user.cpp:95:30: warning: narrowing conversion of ‘d’ from ‘int’ to ‘double’ inside { } [-Wnarrowing]
v.push_back({x, y, d});
^
user.cpp:102:21: error: assignment of function ‘double y0(double)’
x0 = v[1].x, y0 = v[1].y;
^
user.cpp:102:21: error: cannot convert ‘int’ to ‘double(double) throw ()’ in assignment
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !