记录详情

Compile Error

foo.cc:3:28: error: expected initializer before '.' token
 int n,b,e[100001],b[100001].r[200002],l[200002];
                            ^
foo.cc: In function 'int main()':
foo.cc:11:23: error: invalid types 'int[int]' for array subscript
   if(e[i]==b) {t=i;b[i]=0;}
                       ^
foo.cc:12:22: error: invalid types 'int[int]' for array subscript
   else if(e[i]>b) b[i]=1;
                      ^
foo.cc:13:11: error: invalid types 'int[int]' for array subscript
   else b[i]=-1;
           ^
foo.cc:15:2: error: 'l' was not declared in this scope
  l[n]=r[n]=1;
  ^
foo.cc:15:7: error: 'r' was not declared in this scope
  l[n]=r[n]=1;
       ^
foo.cc:18:11: error: invalid types 'int[int]' for array subscript
   sum+=b[i];
           ^
foo.cc:24:11: error: invalid types 'int[int]' for array subscript
   sum+=b[i];
           ^
正在同步测试数据,请稍后

信息

递交者
类型
递交
题目
P1135 中位数
语言
C++
递交时间
2020-12-06 19:02:27
评测时间
2020-12-06 19:02:27
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes