foo.cpp:1:1: error: 'include' does not name a type
include<iostream> include<cstdio> include<cstdlib> include<algorithm> include<cstring>
^
foo.cpp: In function 'int main()':
foo.cpp:7:25: error: 'memset' was not declared in this scope
memset(f,-0x7f,sizeof(f));
^
foo.cpp:8:1: error: 'cin' was not declared in this scope
cin>>N;
^
foo.cpp:12:15: error: 'sort' was not declared in this scope
sort(a+1,a+N+1);
^
foo.cpp:19:43: error: 'max' was not declared in this scope
f[i][j]=max(f[i][j],f[i-1][h1]);
^
foo.cpp:23:48: error: 'max' was not declared in this scope
f[i][j]=max(f[i][j],f[i-1][h2]+a[i]);
^
foo.cpp:27:46: error: 'max' was not declared in this scope
f[i][j]=max(f[i][j],f[i-1][h3]+h3);
^
foo.cpp:31:42: error: 'max' was not declared in this scope
f[i][j]=max(f[i][j],f[i-1][j]);
^
foo.cpp:35:5: error: 'cout' was not declared in this scope
cout<<"Impossible";
^
foo.cpp:38:1: error: 'cout' was not declared in this scope
cout<<f[N][0];
^