/in/foo.cc: In constructor 'Person::Person(std::__cxx11::string, int, int, int, int, int, int)':
/in/foo.cc:51:18: warning: format '%c' expects argument of type 'int', but argument 2 has type 'std::__cxx11::string* {aka std::__cxx11::basic_string<char>*}' [-Wformat=]
printf("%c",&na);
^
/in/foo.cc: In destructor 'virtual Person::~Person()':
/in/foo.cc:56:18: warning: format '%c' expects argument of type 'int', but argument 2 has type 'std::__cxx11::string* {aka std::__cxx11::basic_string<char>*}' [-Wformat=]
printf("%c",&na);
^
/in/foo.cc: In member function 'void Person::print()':
/in/foo.cc:63:25: warning: format '%c' expects argument of type 'int', but argument 2 has type 'std::__cxx11::string* {aka std::__cxx11::basic_string<char>*}' [-Wformat=]
printf("%c ",&na);
^
/in/foo.cc: In function 'int main(int, const char**)':
/in/foo.cc:73:18: warning: format '%c' expects argument of type 'char*', but argument 2 has type 'std::__cxx11::string* {aka std::__cxx11::basic_string<char>*}' [-Wformat=]
scanf("%c",&t);
^
/in/foo.cc:76:18: warning: format '%c' expects argument of type 'char*', but argument 2 has type 'std::__cxx11::string* {aka std::__cxx11::basic_string<char>*}' [-Wformat=]
scanf("%c",&t);
^