prog.cpp:11: error: expected ‘,’ or ‘...’ before ‘~’ token
prog.cpp:11: error: extra qualification ‘Complex::’ on member ‘operator+’
prog.cpp:18: error: expected ‘,’ or ‘...’ before ‘~’ token
prog.cpp:18: error: extra qualification ‘Complex::’ on member ‘operator-’
prog.cpp: In member function ‘Complex Complex::operator+()’:
prog.cpp:14: error: expected primary-expression before ‘.’ token
prog.cpp:15: error: expected primary-expression before ‘.’ token
prog.cpp:16: error: ‘retutn’ was not declared in this scope
prog.cpp:17: warning: no return statement in function returning non-void
prog.cpp: In member function ‘Complex Complex::operator-()’:
prog.cpp:21: error: expected primary-expression before ‘.’ token
prog.cpp:22: error: expected primary-expression before ‘.’ token
prog.cpp:23: error: ‘retutn’ was not declared in this scope
prog.cpp:24: warning: no return statement in function returning non-void
prog.cpp: In member function ‘void Complex::dump()’:
prog.cpp:27: error: ‘cout’ was not declared in this scope
prog.cpp:27: error: ‘endl’ was not declared in this scope
prog.cpp: In function ‘int main()’:
prog.cpp:33: error: invalid conversion from ‘Complex*’ to ‘int’
prog.cpp:33: error: initializing argument 1 of ‘Complex::Complex(int, int)’
prog.cpp:34: error: ‘complex’ was not declared in this scope
prog.cpp:34: error: expected `;' before ‘C2’
prog.cpp:36: error: ‘c1’ was not declared in this scope
prog.cpp:36: error: ‘c2’ was not declared in this scope
prog.cpp:37: error: ‘cout’ was not declared in this scope
prog.cpp:37: error: ‘endl’ was not declared in this scope