>>751 Cでも同じ ISO/IEC 9899:1999 5.1.2.2.3 Program termination -1 If the return type of the main function is a type compatible with int, ... reaching the } that terminates the main function returns a value of 0.
poly.cc: In member function `poly& poly::operator=(const poly&)': poly.cc:59: error: passing `const poly' as `this' argument of `int poly::getdim()' discards qualifiers