In file included from main.cpp:8:0:
num.cpp:12:5: error: prototype for 'Num Num::operator*(int) const' does not match any in class 'Num'
Num Num::operator*(int num) const {
^~~
In file included from main.cpp:7:0:
num.h:14:9: error: candidates are: Num Num::operator*(int)
Num operator*(int num);
^~~~~~~~
num.h:11:9: error: Num Num::operator*(const Num&)
Num operator*(const Num& other);
^~~~~~~~
In file included from main.cpp:8:0:
num.cpp:23:5: error: prototype for 'Num Num::operator+(int) const' does not match any in class 'Num'
Num Num::operator+(int num) const {
^~~
In file included from main.cpp:7:0:
num.h:12:9: error: candidates are: Num Num::operator+(int)
Num operator+(int num);
^~~~~~~~
num.h:9:9: error: Num Num::operator+(const Num&)
Num operator+(const Num& other);
^~~~~~~~
In file included from main.cpp:8:0:
num.cpp:34:5: error: prototype for 'Num Num::operator-(int) const' does not match any in class 'Num'
Num Num::operator-(int num) const {
^~~
In file included from main.cpp:7:0:
num.h:13:9: error: candidates are: Num Num::operator-(int)
Num operator-(int num);
^~~~~~~~
num.h:10:9: error: Num Num::operator-(const Num&)
Num operator-(const Num& other);
^~~~~~~~
|