/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'void lowbits(int)':
/in/foo.cc:19:14: error: return-statement with a value, in function returning 'void' [-fpermissive]
  return x&(-x);
              ^
/in/foo.cc: In function 'void add(int)':
/in/foo.cc:26:15: error: invalid operands of types 'int' and 'void' to binary 'operator+'
   x+=lowbits(x);
               ^
/in/foo.cc:26:15: error:   in evaluation of 'operator+=(int, void)'
/in/foo.cc: In function 'int GetRes(int)':
/in/foo.cc:35:3: error: expected ';' before 'x'
   x-=lowbits(x);
   ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:48:21: error: 'cmp' was not declared in this scope
  sort(dis+1,dis+n+1,cmp);
                     ^~~
/in/foo.cc:60:13: error: 'q' was not declared in this scope
   for(int j=q[i];j;j=nxt[j])
             ^
/in/foo.cc:60:22: error: 'nxt' was not declared in this scope
   for(int j=q[i];j;j=nxt[j])
                      ^~~
/in/foo.cc:62:4: error: 'l' was not declared in this scope
    l=lower_bound(dis+1,dis+v+1,L[j])-dis;
    ^
/in/foo.cc:63:4: error: 'r' was not declared in this scope
    r=lower_bound(dis+1,dis+v+1,R[j])-dis;
    ^

信息

递交者
类型
自测
题目
P1923 漫长的等待
语言
C++
递交时间
2018-05-10 20:06:38
评测时间
2018-05-10 20:06:38
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes