记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:14:14: warning: NULL used in arithmetic [-Wpointer-arith]
  while(a[i]!=NULL || b[k]!=NULL)
              ^~~~
/in/foo.cc:14:28: warning: NULL used in arithmetic [-Wpointer-arith]
  while(a[i]!=NULL || b[k]!=NULL)
                            ^~~~
/in/foo.cc:19:5: error: lvalue required as increment operand
    c++;
     ^~
/in/foo.cc:21:3: error: expected ';' before '}' token
   }
   ^
/in/foo.cc:25:5: error: lvalue required as increment operand
    c++;
     ^~
/in/foo.cc:29:11: warning: NULL used in arithmetic [-Wpointer-arith]
  if(a[i]==NULL)
           ^~~~
/in/foo.cc:31:15: warning: NULL used in arithmetic [-Wpointer-arith]
   while(b[k]!=NULL)
               ^~~~
/in/foo.cc:34:5: error: lvalue required as increment operand
    c++;
     ^~
/in/foo.cc:38:11: warning: NULL used in arithmetic [-Wpointer-arith]
  if(b[k]==NULL)
           ^~~~
/in/foo.cc:40:15: warning: NULL used in arithmetic [-Wpointer-arith]
   while(a[i]!=NULL)
               ^~~~
/in/foo.cc:43:5: error: lvalue required as increment operand
    c++;
     ^~

信息

递交者
类型
自测
题目
xxyw1-1数组的中位数
语言
C++
递交时间
2019-03-18 17:04:28
评测时间
2019-03-18 17:04:28
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes