/ Vijos /

记录详情

Compile Error

foo.cpp: In function 'void print(int, int)':
foo.cpp:8:9: error: 'cout' was not declared in this scope
         cout<<j<<endl;
         ^
foo.cpp:8:18: error: 'endl' was not declared in this scope
         cout<<j<<endl;
                  ^
foo.cpp:11:8: error: 'hh' was not declared in this scope
     if(hh[i-1][j]+h[i][j]==hh[i][j])
        ^
foo.cpp:11:19: error: 'h' was not declared in this scope
     if(hh[i-1][j]+h[i][j]==hh[i][j])
                   ^
foo.cpp:14:9: error: 'cout' was not declared in this scope
         cout<<j<<endl;
         ^
foo.cpp:14:18: error: 'endl' was not declared in this scope
         cout<<j<<endl;
                  ^
foo.cpp:17:13: error: 'n' was not declared in this scope
     if(j != n - 1 && hh[i][j+1]+h[i][j]==hh[i][j])
             ^
foo.cpp:17:22: error: 'hh' was not declared in this scope
     if(j != n - 1 && hh[i][j+1]+h[i][j]==hh[i][j])
                      ^
foo.cpp:17:33: error: 'h' was not declared in this scope
     if(j != n - 1 && hh[i][j+1]+h[i][j]==hh[i][j])
                                 ^
foo.cpp:20:9: error: 'cout' was not declared in this scope
         cout<<j<<endl;
         ^
foo.cpp:20:18: error: 'endl' was not declared in this scope
         cout<<j<<endl;
                  ^
foo.cpp:23:18: error: 'hh' was not declared in this scope
     if(j != 0 && hh[i][j-1]+h[i][j]==hh[i][j])
                  ^
foo.cpp:23:29: error: 'h' was not declared in this scope
     if(j != 0 && hh[i][j-1]+h[i][j]==hh[i][j])
                             ^
foo.cpp:26:9: error: 'cout' was not declared in this scope
         cout<<j<<endl;
         ^
foo.cpp:26:18: error: 'endl' was not declared in this scope
         cout<<j<<endl;
                  ^
foo.cpp: In function 'int main()':
foo.cpp:32:17: error: 'M' was not declared in this scope
  scanf("%d %d",&M,&N);
                 ^
foo.cpp:32:20: error: 'N' was not declared in this scope
  scanf("%d %d",&M,&N);
                    ^
foo.cpp:35:16: error: 'h' was not declared in this scope
    scanf("%d",&h[i][j]);
                ^
foo.cpp:37:3: error: 'hh' was not declared in this scope
   hh[0][i] = h[0][i];
   ^
foo.cpp:37:14: error: 'h' was not declared in this scope
   hh[0][i] = h[0][i];
              ^
foo.cpp:40:3: error: 'hh' was not declared in this scope
   hh[i][0] = hh[i-1][0] + h[i][0];
   ^
foo.cpp:40:27: error: 'h' was not declared in this scope
   hh[i][0] = hh[i-1][0] + h[i][0];
                           ^
foo.cpp:49:8: error: 'hh' was not declared in this scope
   if ( hh[M-1][i] < temp )
        ^

信息

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