In file included from main.cpp:8:0:
num.cpp:20:18: error: expected type-specifier before '(' token
Num Num::operator(const Num &other) {
^
num.cpp:49:6: error: redefinition of 'Num& Num::operator=(const Num&)'
Num &Num::operator=(const Num &other) {
^~~
num.cpp:6:6: note: 'Num& Num::operator=(const Num&)' previously defined here
Num &Num::operator=(const Num &other) {
^~~
num.cpp:66:6: error: prototype for 'Num& Num::operator=(int)' does not match any in class 'Num'
Num &Num::operator=(int num) {
^~~
num.cpp:6:6: error: candidate is: Num& Num::operator=(const Num&)
Num &Num::operator=(const Num &other) {
^~~
|