foo.cpp: In function 'int main()':
foo.cpp:29:100: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'std::string* {aka std::basic_string<char>*}' [-Wformat=]
scanf("%s%d%d%c%c%d",&a[i].name,&a[i].qimo,&a[i].banji,&a[i].bangan,&a[i].xibu,&a[i].lunwen);
^
foo.cpp:49:26: error: cannot pass objects of non-trivially-copyable type 'std::string {aka class std::basic_string<char>}' through '...'
printf("%s",a[0].name)
^
foo.cpp:49:26: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'std::string {aka std::basic_string<char>}' [-Wformat=]
foo.cpp:50:5: error: expected ';' before 'cout'
cout<<endl<<a[0].jiangxuejin<<endl<<zjj;
^