foo.cc:1:2: error: stray '#' in program
x#include<bits/stdc++.h>
^
foo.cc:1:1: error: 'x' does not name a type
x#include<bits/stdc++.h>
^
foo.cc: In function 'int main()':
foo.cc:7:27: error: 'stdin' was not declared in this scope
freopen("game.in","r",stdin);
^~~~~
foo.cc:7:5: error: 'freopen' was not declared in this scope
freopen("game.in","r",stdin);
^~~~~~~
foo.cc:8:28: error: 'stdout' was not declared in this scope
freopen("game.out","w",stdout);
^~~~~~
foo.cc:8:28: note: suggested alternative: 'short'
freopen("game.out","w",stdout);
^~~~~~
short
foo.cc:9:5: error: 'scanf' was not declared in this scope
scanf("%d%d",&n,&m);
^~~~~
foo.cc:19:19: error: 'max' was not declared in this scope
dp[i]=max(dp[i],a[j]-dp[j+1]);
^~~
foo.cc:19:19: note: suggested alternative: 'main'
dp[i]=max(dp[i],a[j]-dp[j+1]);
^~~
main
foo.cc:22:5: error: 'printf' was not declared in this scope
printf("%lld\n%lld",dp[n],dp[-n]);
^~~~~~
foo.cc:22:5: note: suggested alternative: 'int'
printf("%lld\n%lld",dp[n],dp[-n]);
^~~~~~
int
[Hydro](https://hydro.ac)提供评测服务