/ Vijos /

记录详情

Compile Error

/in/foo.cc:1:7: error: 'MAXM' was not declared in this scope
 int f[MAXM][MAXN];
       ^~~~
/in/foo.cc:1:13: error: 'MAXN' was not declared in this scope
 int f[MAXM][MAXN];
             ^~~~
/in/foo.cc:2:7: error: 'MAXM' was not declared in this scope
 int w[MAXM][MAXN];
       ^~~~
/in/foo.cc:2:13: error: 'MAXN' was not declared in this scope
 int w[MAXM][MAXN];
             ^~~~
/in/foo.cc:4:9: error: 'INF' was not declared in this scope
 int ans=INF,p;
         ^~~
/in/foo.cc: In function 'void init()':
/in/foo.cc:8:23: error: 'scanf' was not declared in this scope
     scanf("%d%d",&m,&n);
                       ^
/in/foo.cc:11:25: error: 'w' was not declared in this scope
             scanf("%d",&w[i][j]);
                         ^
/in/foo.cc:12:12: error: 'f' was not declared in this scope
     memset(f,0x3f,sizeof(f));
            ^
/in/foo.cc:12:28: error: 'memset' was not declared in this scope
     memset(f,0x3f,sizeof(f));
                            ^
/in/foo.cc: In function 'void DP()':
/in/foo.cc:18:9: error: 'f' was not declared in this scope
         f[1][i]=w[1][i];
         ^
/in/foo.cc:18:17: error: 'w' was not declared in this scope
         f[1][i]=w[1][i];
                 ^
/in/foo.cc:22:13: error: 'f' was not declared in this scope
             f[i][j]=f[i-1][j]+w[i][j];
             ^
/in/foo.cc:22:31: error: 'w' was not declared in this scope
             f[i][j]=f[i-1][j]+w[i][j];
                               ^
/in/foo.cc:24:13: error: 'f' was not declared in this scope
             f[i][j]=min(f[i][j],f[i][j-1]+w[i][j]);
             ^
/in/foo.cc:24:43: error: 'w' was not declared in this scope
             f[i][j]=min(f[i][j],f[i][j-1]+w[i][j]);
                                           ^
/in/foo.cc:24:50: error: 'min' was not declared in this scope
             f[i][j]=min(f[i][j],f[i][j-1]+w[i][j]);
                                                  ^
/in/foo.cc:26:13: error: 'f' was not declared in this scope
             f[i][j]=min(f[i][j],f[i][j+1]+w[i][j]);
             ^
/in/foo.cc:26:43: error: 'w' was not declared in this scope
             f[i][j]=min(f[i][j],f[i][j+1]+w[i][j]);
                                           ^
/in/foo.cc:26:50: error: 'min' was not declared in this scope
             f[i][j]=min(f[i][j],f[i][j+1]+w[i][j]);
                                                  ^
/in/foo.cc:30:12: error: 'f' was not declared in this scope
         if(f[m][i]<ans)
            ^
/in/foo.cc:33:13: error: 'p' was not declared in this scope
             p=i;
             ^
/in/foo.cc: In function 'void print(int, int)':
/in/foo.cc:42:9: error: 'cout' was not declared in this scope
         cout<<y<<endl;
         ^~~~
/in/foo.cc:42:18: error: 'endl' was not declared in this scope
         cout<<y<<endl;
                  ^~~~
/in/foo.cc:45:8: error: 'f' was not declared in this scope
     if(f[x-1][y]+w[x][y]==f[x][y])
        ^
/in/foo.cc:45:18: error: 'w' was not declared in this scope
     if(f[x-1][y]+w[x][y]==f[x][y])
                  ^
/in/foo.cc:51:5: error: 'cout' was not declared in this scope
     cout<<y<<endl;
     ^~~~
/in/foo.cc:51:14: error: 'endl' was not declared in this scope
     cout<<y<<endl;
              ^~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:58:13: error: 'p' was not declared in this scope
     print(m,p);
             ^

信息

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