/ LZOJ /

记录详情

Compile Error

/in/foo.cc: In function 'void msort(int, int)':
/in/foo.cc:18:27: error: 'ans' was not declared in this scope
             c[k++]=a[j++],ans+=mid-i+1;
                           ^~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:50:15: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
             if(j%2)
               ^
/in/foo.cc:61:15: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
             if(j%2)
               ^

信息

递交者
类型
自测
题目
P1027 出栈序列统计
语言
C++
递交时间
2020-07-25 16:25:32
评测时间
2020-07-25 16:25:32
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes