/in/MyPoint.cpp:27:5: error: prototype for 'int MyPoint::distance(MyPoint)' does not match any in class 'MyPoint'
int MyPoint::distance(MyPoint otherPoint) {
^~~~~~~
In file included from /in/MyPoint.cpp:5:0:
/in/MyPoint.h:23:12: error: candidate is: double MyPoint::distance(MyPoint)
double distance(MyPoint);
^~~~~~~~
/in/compile/ex1.cpp: In function 'int main()':
/in/compile/ex1.cpp:19:19: error: no matching function for call to 'MyPoint::setX(int&)'
p1.setX(x1);
^
In file included from /in/compile/ex1.cpp:2:0:
/in/MyPoint.h:20:9: note: candidate: int MyPoint::setX()
int setX();
^~~~
/in/MyPoint.h:20:9: note: candidate expects 0 arguments, 1 provided
/in/compile/ex1.cpp:20:19: error: no matching function for call to 'MyPoint::setY(int&)'
p1.setY(y1);
^
In file included from /in/compile/ex1.cpp:2:0:
/in/MyPoint.h:21:9: note: candidate: int MyPoint::setY()
int setY();
^~~~
/in/MyPoint.h:21:9: note: candidate expects 0 arguments, 1 provided
/in/compile/ex1.cpp:21:19: error: no matching function for call to 'MyPoint::setX(int&)'
p2.setX(x2);
^
In file included from /in/compile/ex1.cpp:2:0:
/in/MyPoint.h:20:9: note: candidate: int MyPoint::setX()
int setX();
^~~~
/in/MyPoint.h:20:9: note: candidate expects 0 arguments, 1 provided
/in/compile/ex1.cpp:22:19: error: no matching function for call to 'MyPoint::setY(int&)'
p2.setY(y2);
^
In file included from /in/compile/ex1.cpp:2:0:
/in/MyPoint.h:21:9: note: candidate: int MyPoint::setY()
int setY();
^~~~
/in/MyPoint.h:21:9: note: candidate expects 0 arguments, 1 provided