/ OPS /

记录详情

Compile Error

/in/foo.cc: In function 'void draw(int, int)':
/in/foo.cc:5:9: error: 'canvas' was not declared in this scope
         canvas[x][i] = canvas[x - 3][i] = canvas[x - 5][i + 2] = '-';
         ^
/in/foo.cc:7:9: error: 'canvas' was not declared in this scope
         canvas[i][y] = canvas[i][y + 4] = canvas[i - 2][y + 6] = '|';
         ^
/in/foo.cc:10:13: error: 'canvas' was not declared in this scope
             canvas[i][j] = ' ';
             ^
/in/foo.cc:12:9: error: 'canvas' was not declared in this scope
         canvas[i][y + 5] = ' ';
         ^
/in/foo.cc:14:9: error: 'canvas' was not declared in this scope
         canvas[x - 4][i] = ' ';
         ^
/in/foo.cc:15:5: error: 'canvas' was not declared in this scope
     canvas[x][y] = canvas[x - 3][y] = canvas[x][y + 4] = canvas[x - 3][y + 4] = '+';
     ^
/in/foo.cc: In function 'void draw(int, int)':
/in/foo.cc:33:6: error: redefinition of 'void draw(int, int)'
 void draw(int x, int y)
      ^
/in/foo.cc:1:6: note: 'void draw(int, int)' previously defined here
 void draw(int x, int y)
      ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:54:26: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d%d", &m, &n);
                          ^
/in/foo.cc:57:36: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
             scanf("%d", &hei[i][j]);
                                    ^

信息

递交者
类型
递交
题目
P3514 立体图
语言
C++
递交时间
2020-08-14 21:59:45
评测时间
2020-08-14 21:59:45
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes