/in/foo.cc:8:2: error: 'string' does not name a type
string name;
^~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:19:13: error: 'struct node' has no member named 'name'; did you mean 'node'?
cin>>a[i].name>>a[i].qm>>a[i].bj>>a[i].g>>a[i].x>>a[i].lw;
^~~~
/in/foo.cc:39:13: error: 'struct node' has no member named 'name'; did you mean 'node'?
cout<<a[k].name<<endl<<ans<<endl<<tol<<endl;
^~~~
/in/foo.cc:16:7: warning: unused variable 'c1' [-Wunused-variable]
char c1,c2;
^~
/in/foo.cc:16:10: warning: unused variable 'c2' [-Wunused-variable]
char c1,c2;
^~