/in/foo.cc:11:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
A(char *Name="Noname", int sum1 = 0, int sum2 = 0)
^~~~~~~~
/in/foo.cc:18:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
void set(char *Name1="Noname", int sum1 = 0, int sum2 = 0)
^~~~~~~~
/in/foo.cc: In constructor 'A::A(char*, int, int)':
/in/foo.cc:14:26: error: 'strcpy' was not declared in this scope
strcpy(this->Name, Name);
^
/in/foo.cc: In member function 'void A::set(char*, int, int)':
/in/foo.cc:23:27: error: 'strcpy' was not declared in this scope
strcpy(this->Name, Name1);
^
/in/foo.cc: In function 'int main()':
/in/foo.cc:56:4: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
A x;
^