/ Vijos /

记录详情

Compile Error

/in/foo.cc:3:12: error: '__int64' does not name a type
 #define ll __int64
            ^
/in/foo.cc:5:1: note: in expansion of macro 'll'
 ll b[110][550];
 ^~
/in/foo.cc:3:12: error: '__int64' does not name a type
 #define ll __int64
            ^
/in/foo.cc:6:1: note: in expansion of macro 'll'
 ll dp[110][550];
 ^~
/in/foo.cc: In function 'int main()':
/in/foo.cc:3:12: error: '__int64' was not declared in this scope
 #define ll __int64
            ^
/in/foo.cc:35:2: note: in expansion of macro 'll'
  ll res;
  ^~
/in/foo.cc:42:4: error: 'b' was not declared in this scope
    b[i][j]=b[i][j-1]+a[i][j];
    ^
/in/foo.cc:39:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for(i=1;i<=m;i++)
  ^~~
/in/foo.cc:46:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
   for(i=1;i<=n;i++){   dp[1][i]=a[1][i], now[1][i]=i; }
   ^~~
/in/foo.cc:46:24: error: 'dp' was not declared in this scope
   for(i=1;i<=n;i++){   dp[1][i]=a[1][i], now[1][i]=i; }
                        ^~
/in/foo.cc:50:5: error: 'dp' was not declared in this scope
     dp[i][j]=dp[i-1][j]+a[i][j];
     ^~
/in/foo.cc:56:21: error: 'b' was not declared in this scope
       if(dp[i-1][k]+b[i][j]-b[i][k]+a[i][k]<dp[i][j]){
                     ^
/in/foo.cc:62:21: error: 'b' was not declared in this scope
       if(dp[i-1][k]+b[i][k]-b[i][j]+a[i][j]<dp[i][j]){
                     ^
/in/foo.cc:48:3: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
   for(i=2;i<=m;i++)
   ^~~
/in/foo.cc:70:4: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
    int end=1;
    ^~~
/in/foo.cc:71:4: error: 'res' was not declared in this scope
    res=dp[m][1];
    ^~~
/in/foo.cc:71:8: error: 'dp' was not declared in this scope
    res=dp[m][1];
        ^~

信息

递交者
类型
递交
题目
P1139 小胖办证
语言
C++
递交时间
2020-11-03 12:42:29
评测时间
2020-11-03 12:42:29
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes