foo.cpp:1:1: error: 'include' does not name a type
include<iostream> include<cstdio> include<cstdlib> include<cmath> include<algorithm> include<fstream>
^
foo.cpp: In function 'int read()':
foo.cpp:4:29: error: 'getchar' was not declared in this scope
int x=0,f=1;char ch=getchar();
^
foo.cpp:6:27: error: 'x10' was not declared in this scope
while(ch>='0'&&ch<='9'){x=x10+ch-'0';ch=getchar();}
^
foo.cpp:7:8: error: 'xf' was not declared in this scope
return xf;
^
foo.cpp: In function 'int main()':
foo.cpp:44:43: error: 'max' was not declared in this scope
f[zhu][v]=max(f[zhu][v],f[zhu][v-jian]+jia);
^
foo.cpp:55:57: error: 'max' was not declared in this scope
ans[v]=max(ans[v],ans[v-k-th[zhu].v]+f[zhu][k]+th[zhu].c);
^
foo.cpp:60:1: error: 'cout' was not declared in this scope
cout<<ans[N];
^
foo.cpp: In function 'int read()':
foo.cpp:8:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^