/ Vijos /

记录详情

Runtime Error

/in/foo.cc: In member function 'void pre_tree::insert(int, int, int&, int, int, data)':
/in/foo.cc:42:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   42 |         if(l==r)return ls[p]=rs[p]=0,void(); int mid=(l+r)>>1;
      |         ^~
/in/foo.cc:42:46: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
   42 |         if(l==r)return ls[p]=rs[p]=0,void(); int mid=(l+r)>>1;
      |                                              ^~~
/in/foo.cc: In member function 'data pre_tree::query(int, int, int, int, int)':
/in/foo.cc:46:20: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   46 |         if(!p||L<=l&&r<=R)return t[p];
      |                ~~~~^~~~~~
/in/foo.cc: In member function 'void pre_array::insert(int, int, int&, int, int, int)':
/in/foo.cc:60:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   60 |         if(l==r)return ls[p]=rs[p]=0,void(); int mid=(l+r)>>1;
      |         ^~
/in/foo.cc:60:46: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
   60 |         if(l==r)return ls[p]=rs[p]=0,void(); int mid=(l+r)>>1;
      |                                              ^~~
/in/foo.cc: In member function 'int pre_array::query(int, int, int, int)':
/in/foo.cc:64:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   64 |         if(!p||l==r)return t[p]; int mid=(l+r)>>1;
      |         ^~
/in/foo.cc:64:34: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
   64 |         if(!p||l==r)return t[p]; int mid=(l+r)>>1;
      |                                  ^~~
# 状态 耗时 内存占用
#1 Accepted 2435ms 172.883 MiB
#2 Runtime Error 203ms 169.531 MiB
#3 Accepted 2842ms 168.199 MiB

信息

递交者
类型
递交
题目
P2048 原题识别
语言
C++
递交时间
2025-06-07 00:29:29
评测时间
2025-06-07 00:29:29
评测机
分数
70
总耗时
5480ms
峰值内存
172.883 MiB