0_0_37977516_18610.cpp: In function 'Vect operator+(const Vect&, const Vect&)':
0_0_37977516_18610.cpp:16:80: error: no matching function for call to 'Vect::Vect(double, double)'
Vect operator+(const Vect &a, const Vect &b) { return Vect(a.x + b.x, a.y + b.y); }
^
0_0_37977516_18610.cpp:16:80: note: candidates are:
0_0_37977516_18610.cpp:10:8: note: Vect::Vect()
struct Vect
^
0_0_37977516_18610.cpp:10:8: note: candidate expects 0 arguments, 2 provided
0_0_37977516_18610.cpp:10:8: note: constexpr Vect::Vect(const Vect&)
0_0_37977516_18610.cpp:10:8: note: candidate expects 1 argument, 2 provided
0_0_37977516_18610.cpp:10:8: note: constexpr Vect::Vect(Vect&&)
0_0_37977516_18610.cpp:10:8: note: candidate expects 1 argument, 2 provided
0_0_37977516_18610.cpp: In function 'Vect operator-(const Vect&, const Vect&)':
0_0_37977516_18610.cpp:17:80: error: no matching function for call to 'Vect::Vect(double, double)'
Vect operator-(const Vect &a, const Vect &b) { return Vect(a.x - b.x, a.y - b.y); }
^
0_0_37977516_18610.cpp:17:80: note: candidates are:
0_0_37977516_18610.cpp:10:8: note: Vect::Vect()
struct Vect
^
0_0_37977516_18610.cpp:10:8: note: candidate expects 0 arguments, 2 provided
0_0_37977516_18610.cpp:10:8: note: constexpr Vect::Vect(const Vect&)
0_0_37977516_18610.cpp:10:8: note: candidate expects 1 argument, 2 provided
0_0_37977516_18610.cpp:10:8: note: constexpr Vect::Vect(Vect&&)
0_0_37977516_18610.cpp:10:8: note: candidate expects 1 argument, 2 provided
0_0_37977516_18610.cpp: In function 'Vect operator-(const Vect&)':
0_0_37977516_18610.cpp:18:55: error: no matching function for call to 'Vect::Vect(double, double)'
Vect operator-(const Vect &v) { return Vect(-v.x, -v.y); }
^
0_0_37977516_18610.cpp:18:55: note: candidates are:
0_0_37977516_18610.cpp:10:8: note: Vect::Vect()
struct Vect
^
0_0_37977516_18610.cpp:10:8: note: candidate expects 0 arguments, 2 provided
0_0_37977516_18610.cpp:10:8: note: constexpr Vect::Vect(const Vect&)
0_0_37977516_18610.cpp:10:8: note: candidate expects 1 argument, 2 provided
0_0_37977516_18610.cpp:10:8: note: constexpr Vect::Vect(Vect&&)
0_0_37977516_18610.cpp:10:8: note: candidate expects 1 argument, 2 provided
0_0_37977516_18610.cpp: In function 'Vect operator*(const double&, const Vect&)':
0_0_37977516_18610.cpp:19:78: error: no matching function for call to 'Vect::Vect(double, double)'
Vect operator*(const double &k, const Vect &v) { return Vect(k * v.x, k * v.y); }
^
0_0_37977516_18610.cpp:19:78: note: candidates are:
0_0_37977516_18610.cpp:10:8: note: Vect::Vect()
struct Vect
^
0_0_37977516_18610.cpp:10:8: note: candidate expects 0 arguments, 2 provided
0_0_37977516_18610.cpp:10:8: note: constexpr Vect::Vect(const Vect&)
0_0_37977516_18610.cpp:10:8: note: candidate expects 1 argument, 2 provided
0_0_37977516_18610.cpp:10:8: note: constexpr Vect::Vect(Vect&&)
0_0_37977516_18610.cpp:10:8: note: candidate expects 1 argument, 2 provided
|