foo.cpp: In function 'int main()':
foo.cpp:29:99: error: cannot pass objects of non-trivially-copyable type 'std::string {aka class std::basic_string<char>}' through '...'
scanf("%s%s%s%s%s%s",a[i].name,&a[i].qimo,&a[i].banji,&a[i].bangan,&a[i].xibu,&a[i].lunwen);
^
foo.cpp:29:99: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'std::string {aka std::basic_string<char>}' [-Wformat=]
foo.cpp:29:99: warning: format '%s' expects argument of type 'char*', but argument 3 has type 'int*' [-Wformat=]
foo.cpp:29:99: warning: format '%s' expects argument of type 'char*', but argument 4 has type 'int*' [-Wformat=]
foo.cpp:29:99: warning: format '%s' expects argument of type 'char*', but argument 7 has type 'int*' [-Wformat=]