/in/foo.cc:32:2: error: stray '#' in program
}#include<stdio.h>
^
/in/foo.cc:32:3: error: 'include' does not name a type
}#include<stdio.h>
^~~~~~~
/in/foo.cc:35:5: error: redefinition of 'int n'
int n,dp[6000][6000][2],a[6000],ans;
^
/in/foo.cc:4:5: note: 'int n' previously declared here
int n,dp[6000][6000][2],a[6000],ans;
^
/in/foo.cc:35:23: error: redefinition of 'int dp [6000][6000][2]'
int n,dp[6000][6000][2],a[6000],ans;
^
/in/foo.cc:4:7: note: 'int dp [6000][6000][2]' previously declared here
int n,dp[6000][6000][2],a[6000],ans;
^~
/in/foo.cc:35:31: error: redefinition of 'int a [6000]'
int n,dp[6000][6000][2],a[6000],ans;
^
/in/foo.cc:4:25: note: 'int a [6000]' previously declared here
int n,dp[6000][6000][2],a[6000],ans;
^
/in/foo.cc:35:33: error: redefinition of 'int ans'
int n,dp[6000][6000][2],a[6000],ans;
^~~
/in/foo.cc:4:33: note: 'int ans' previously declared here
int n,dp[6000][6000][2],a[6000],ans;
^~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:36:5: error: redefinition of 'int main()'
int main(){
^~~~
/in/foo.cc:5:5: note: 'int main()' previously defined here
int main(){
^~~~