Borderou de evaluare (job #2113909)
Utilizator | Data | 25 ianuarie 2018 11:27:42 | |
---|---|---|---|
Problema | Unda | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:19:10: error: no matching function for call to ‘Point::Point()’
} pts[DIM], pol[DIM];
^
user.cpp:19:10: note: candidates are:
user.cpp:17:5: note: Point::Point(double, double)
Point(double _x, double _y)
^
user.cpp:17:5: note: candidate expects 2 arguments, 0 provided
user.cpp:13:7: note: constexpr Point::Point(const Point&)
class Point {
^
user.cpp:13:7: note: candidate expects 1 argument, 0 provided
user.cpp:13:7: note: constexpr Point::Point(Point&&)
user.cpp:13:7: note: candidate expects 1 argument, 0 provided
user.cpp:19:20: error: no matching function for call to ‘Point::Point()’
} pts[DIM], pol[DIM];
^
user.cpp:19:20: note: candidates are:
user.cpp:17:5: note: Point::Point(double, double)
Point(double _x, double _y)
^
user.cpp:17:5: note: candidate expects 2 arguments, 0 provided
user.cpp:13:7: note: constexpr Point::Point(const Point&)
class Point {
^
user.cpp:13:7: note: candidate expects 1 argument, 0 provided
user.cpp:13:7: note: constexpr Point::Point(Point&&)
user.cpp:13:7: note: candidate expects 1 argument, 0 provided
user.cpp: In function ‘int main()’:
user.cpp:34:34: error: ‘class Point’ has no member named ‘second’
in >> pts[i].x >> pts[i].second;
^
user.cpp:37:14: error: no match for ‘operator=’ (operand types are ‘Point’ and ‘std::pair<double, double>’)
pol[++k] = make_pair(-INF, -INF);
^
user.cpp:37:14: note: candidates are:
user.cpp:13:7: note: Point& Point::operator=(const Point&)
class Point {
^
user.cpp:13:7: note: no known conversion for argument 1 from ‘std::pair<double, double>’ to ‘const Point&’
user.cpp:13:7: note: Point& Point::operator=(Point&&)
user.cpp:13:7: note: no known conversion for argument 1 from ‘std::pair<double, double>’ to ‘Point&&’
user.cpp:38:14: error: no match for ‘operator=’ (operand types are ‘Point’ and ‘std::pair<double, double>’)
pol[++k] = make_pair(+INF, -INF);
^
user.cpp:38:14: note: candidates are:
user.cpp:13:7: note: Point& Point::operator=(const Point&)
class Point {
^
user.cpp:13:7: note: no known conversion for argument 1 from ‘std::pair<double, double>’ to ‘const Point&’
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !