foo.cpp:1:1: error: 'include' does not name a type
include<cstdio> include<iostream> include<algorithm> include<cstring>
^
foo.cpp: In function 'int main()':
foo.cpp:12:14: error: 'scanf' was not declared in this scope
scanf("%d",&n);
^
foo.cpp:26:1: error: 'cin' was not declared in this scope
cin>>mo>>ban>>gan>>sheng>>lun;
^
foo.cpp:40:17: error: 'printf' was not declared in this scope
printf("%c",a[i]);
^
foo.cpp:41:27: error: 'printf' was not declared in this scope
printf("\n%d\n%d",maxn,tot);
^