/ Vijos /

记录详情

Compile Error

/in/foo.cc:8:6: error: stray '\357' in program
 int n,a,sum[maxn],dp[maxn][maxn];
      ^
/in/foo.cc:8:7: error: stray '\274' in program
 int n,a,sum[maxn],dp[maxn][maxn];
       ^
/in/foo.cc:8:8: error: stray '\214' in program
 int n,a,sum[maxn],dp[maxn][maxn];
        ^
/in/foo.cc:8:9: error: expected initializer before 'a'
 int n,a,sum[maxn],dp[maxn][maxn];
         ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:10:17: error: 'n' was not declared in this scope
     scanf("%d",&n);
                 ^
/in/foo.cc:12:21: error: 'a' was not declared in this scope
         scanf("%d",&a);
                     ^
/in/foo.cc:13:9: error: 'dp' was not declared in this scope
         dp[i][i]=a;
         ^~
/in/foo.cc:14:9: error: 'sum' was not declared in this scope
         sum[i]=sum[i-1]+a;
         ^~~
/in/foo.cc:18:13: error: 'dp' was not declared in this scope
             dp[j][j+i]=sum[i+j]-sum[j-1]-min(dp[j+1][j+i],dp[j][j+i-1]);
             ^~
/in/foo.cc:18:24: error: 'sum' was not declared in this scope
             dp[j][j+i]=sum[i+j]-sum[j-1]-min(dp[j+1][j+i],dp[j][j+i-1]);
                        ^~~
/in/foo.cc:21:17: error: 'dp' was not declared in this scope
     printf("%d",dp[1][n]);
                 ^~

信息

递交者
类型
递交
题目
P1991 二人抓牌
语言
C++
递交时间
2018-05-08 20:38:25
评测时间
2018-05-08 20:38:25
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes