/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:6:30: error: conflicting declaration 'int a [101]'
     int a,b,n,c,d,i,j,l,a[101]={0},b[101]={0};
                              ^
/in/foo.cc:6:9: note: previous declaration as 'int a'
     int a,b,n,c,d,i,j,l,a[101]={0},b[101]={0};
         ^
/in/foo.cc:6:41: error: conflicting declaration 'int b [101]'
     int a,b,n,c,d,i,j,l,a[101]={0},b[101]={0};
                                         ^
/in/foo.cc:6:11: note: previous declaration as 'int b'
     int a,b,n,c,d,i,j,l,a[101]={0},b[101]={0};
           ^
/in/foo.cc:21:16: error: invalid types 'int[int]' for array subscript
             a[l]=n/y;
                ^
/in/foo.cc:21:20: error: 'y' was not declared in this scope
             a[l]=n/y;
                    ^
/in/foo.cc:23:16: error: invalid types 'int[int]' for array subscript
             b[l]=n;
                ^
/in/foo.cc:25:23: error: invalid types 'int[int]' for array subscript
                 if(a[l]==a[i]&&b[l]==b[i])
                       ^
/in/foo.cc:25:29: error: invalid types 'int[int]' for array subscript
                 if(a[l]==a[i]&&b[l]==b[i])
                             ^
/in/foo.cc:25:35: error: invalid types 'int[int]' for array subscript
                 if(a[l]==a[i]&&b[l]==b[i])
                                   ^
/in/foo.cc:25:41: error: invalid types 'int[int]' for array subscript
                 if(a[l]==a[i]&&b[l]==b[i])
                                         ^
/in/foo.cc:36:52: error: invalid types 'int[int]' for array subscript
                 if(d==i&&c==1) {cout<<"(";cout<<a[i];}
                                                    ^
/in/foo.cc:37:31: error: invalid types 'int[int]' for array subscript
                 else cout<<a[i];
                               ^

信息

递交者
类型
递交
题目
P1343 精度计算
语言
C++
递交时间
2017-05-11 20:47:56
评测时间
2017-05-11 20:47:56
评测机
分数
0
总耗时
225ms
峰值内存
27.633 MiB