/ 程序猿 /

记录详情

Compile Error

/in/foo.cc: In function 'void qsort(int, int)':
/in/foo.cc:7:17: error: return-statement with a value, in function returning 'void' [-fpermissive]
  if(l>r) return 0;
                 ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:25:6: warning: unused variable 'midd' [-Wunused-variable]
  int midd=(n+1)/2;
      ^~~~
/in/foo.cc:26:11: error: 'i' was not declared in this scope
  s+=abs(a[i]-midd);
           ^
/in/foo.cc:26:14: error: 'midd' was not declared in this scope
  s+=abs(a[i]-midd);
              ^~~~

信息

递交者
类型
递交
题目
输油管道问题
语言
C++
递交时间
2019-03-17 10:26:21
评测时间
2019-03-17 10:26:21
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes