记录详情

Compile Error

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)提供评测服务

信息

递交者
类型
递交
题目
对决 (game.cpp\c\pas)
题目数据
下载
语言
C++
递交时间
2021-08-05 09:43:28
评测时间
2021-08-05 09:43:28
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes