/in/foo.cc:12:16: 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:19:25: 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:15: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:24:27: error: 'strcpy' was not declared in this scope
strcpy(this->Name, Name1);
^
/in/foo.cc: In function 'int main()':
/in/foo.cc:57:4: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
A x;
^