foo.cpp:1:1: error: 'include' does not name a type
include<iostream>
^
foo.cpp: In function 'int main()':
foo.cpp:20:7: error: 'cin' was not declared in this scope
int n;cin>>n;
^
foo.cpp:22:95: error: 'scanf' was not declared in this scope
scanf("%s%d%d %c %c%d\n",&a[i].name,&a[i].qimo,&a[i].banji,&a[i].ganbu,&a[i].xibu,&a[i].lunwen);
^
foo.cpp:31:20: error: 'sort' was not declared in this scope
sort(a+1,a+n+1,comp);
^
foo.cpp:35:1: error: 'cout' was not declared in this scope
cout<<a[1].name<<endl<<a[1].jj<<endl<<s;
^
foo.cpp:35:18: error: 'endl' was not declared in this scope
cout<<a[1].name<<endl<<a[1].jj<<endl<<s;
^