/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'void build(ll, ll, ll)':
/in/foo.cc:39:10: error: 'a' was not declared in this scope
   sum[k]=a[l];
          ^
/in/foo.cc:42:13: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
     ll mid=l+r>>1;
            ~^~
/in/foo.cc: In function 'void change(ll, ll, ll, ll, ll)':
/in/foo.cc:53:19: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
  register ll mid=l+r>>1;
                  ~^~
/in/foo.cc: At global scope:
/in/foo.cc:58:88: error: storage class 'register' invalid for function 'query'
 register ll query(register ll k,register ll l,register ll r,register ll x,register ll y){
                                                                                        ^
/in/foo.cc: In function 'll query(ll, ll, ll, ll, ll)':
/in/foo.cc:61:19: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
  register ll mid=l+r>>1;
                  ~^~
/in/foo.cc: In function 'int main()':
/in/foo.cc:87:48: error: 'updatel' was not declared in this scope
   if(t==1)read(x),read(y),read(z),updatel(x,y,z);
                                                ^
/in/foo.cc:89:43: error: 'updatet' was not declared in this scope
   else if(t==3)read(x),read(z),updatet(x,z);
                                           ^
/in/foo.cc:90:28: error: 'askt' was not declared in this scope
   else read(x),print(askt(x)),putchar('\n');
                            ^

信息

递交者
类型
自测
题目
P1986 小h的妹子树二
语言
C++
递交时间
2020-07-13 20:49:40
评测时间
2020-07-13 20:49:40
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes