/ 程序猿 /

记录详情

Compile Error

/in/foo.cc: In function 'void qsort(int, int)':
/in/foo.cc:8:5: error: 'a' was not declared in this scope
 mid=a[(l+r)/2];
     ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:29:6: error: 'a' was not declared in this scope
 cin>>a[i];
      ^
/in/foo.cc:32:18: error: invalid types 'int[int]' for array subscript
 int mid=t[(1+n)/2];
                  ^
/in/foo.cc:34:8: error: 'a' was not declared in this scope
 s+=abs(a[i]-mid);
        ^

信息

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