/ Vijos /

记录详情

Compile Error

/in/foo.cc:10:1: error: initializer-string for array of chars is too long [-fpermissive]
 }
 ^
/in/foo.cc:10:1: error: initializer-string for array of chars is too long [-fpermissive]
/in/foo.cc:10:1: error: initializer-string for array of chars is too long [-fpermissive]
/in/foo.cc:10:1: error: initializer-string for array of chars is too long [-fpermissive]
/in/foo.cc:10:1: error: initializer-string for array of chars is too long [-fpermissive]
/in/foo.cc:10:1: error: initializer-string for array of chars is too long [-fpermissive]
/in/foo.cc:11:1: error: expected ',' or ';' before 'char'
 char ans[410][410];
 ^~~~
/in/foo.cc: In function 'void paint(int, int)':
/in/foo.cc:14:22: error: 'ans' was not declared in this scope
  for(int i=2;i<7;i++)ans[x-2][y+i]=cube[0][i];
                      ^~~
/in/foo.cc:15:22: error: 'ans' was not declared in this scope
  for(int i=1;i<7;i++)ans[x-1][y+i]=cube[1][i];
                      ^~~
/in/foo.cc:16:22: error: 'ans' was not declared in this scope
  for(int i=0;i<7;i++)ans[x+0][y+i]=cube[2][i];
                      ^~~
/in/foo.cc:17:22: error: 'ans' was not declared in this scope
  for(int i=0;i<7;i++)ans[x+1][y+i]=cube[3][i];
                      ^~~
/in/foo.cc:18:22: error: 'ans' was not declared in this scope
  for(int i=0;i<6;i++)ans[x+2][y+i]=cube[4][i];
                      ^~~
/in/foo.cc:19:22: error: 'ans' was not declared in this scope
  for(int i=0;i<5;i++)ans[x+3][y+i]=cube[5][i];
                      ^~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:23:16: error: 'n' was not declared in this scope
  scanf("%d%d",&n,&m);
                ^
/in/foo.cc:23:19: error: 'm' was not declared in this scope
  scanf("%d%d",&n,&m);
                   ^
/in/foo.cc:24:2: error: 'k' was not declared in this scope
  k=0;l=0;
  ^
/in/foo.cc:24:6: error: 'l' was not declared in this scope
  k=0;l=0;
      ^
/in/foo.cc:28:14: error: 'a' was not declared in this scope
  scanf("%d",&a[i][j]),l=max(l,2*(n-i)+a[i][j]*3+1);
              ^
/in/foo.cc:29:44: error: 'ans' was not declared in this scope
  for(int i=1;i<=k;i++)for(int j=1;j<=l;j++)ans[i][j]='.';
                                            ^~~
/in/foo.cc:32:17: error: 'a' was not declared in this scope
  for(int p=1;p<=a[i][j];p++)
                 ^
/in/foo.cc:34:28: error: 'ans' was not declared in this scope
  for(int i=1;i<=k;i++)puts(ans[i]+1);
                            ^~~

信息

递交者
类型
自测
题目
P1497 立体图
语言
C++
递交时间
2018-09-04 15:23:30
评测时间
2018-09-04 15:23:30
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes