Runtime Error

foo.cc: In function 'void build(int, int, int)':
foo.cc:36:11: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
  int mid=l+r>>1;
          ~^~
foo.cc: In function 'void change(int, int, int, int, int)':
foo.cc:49:11: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
  int mid=l+r>>1;
          ~^~
foo.cc: In function 'long long int ask(int, int, int, int, int)':
foo.cc:59:11: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
  int mid=l+r>>1;
          ~^~
foo.cc: In function 'int main()':
foo.cc:73:40: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
   if(op==1)printf("%d\n",ask(1,1,n,l,r));
                          ~~~~~~~~~~~~~~^

自豪的采用 HydroJudge 进行评测(github.com/hydro-dev/HydroJudge)
{"receive":"2020-07-10T12:25:17.761Z","handle":"2020-07-10T12:25:17.761Z","cache_start":"2020-07-10T12:25:17.769Z","read_cases":"2020-07-10T12:25:17.900Z","judge":"2020-07-10T12:25:17.903Z","done":"2020-07-10T12:25:19.233Z"}
# 状态 耗时 内存占用
#1 Runtime Error 19ms 8.047 MiB
#2 Runtime Error 19ms 8.043 MiB
#3 Runtime Error 9ms 5.047 MiB
#4 Runtime Error 19ms 8.047 MiB
#5 Runtime Error 19ms 8.047 MiB
#6 Accepted 1ms 256.0 KiB
#7 Accepted 1ms 256.0 KiB
#8 Runtime Error 3ms 1.07 MiB
#9 Accepted 22ms 9.414 MiB
#10 Runtime Error 19ms 8.047 MiB

信息

递交者
类型
递交
题目
「一本通 4.3 练习 2」花神游历各国
语言
C++
递交时间
2020-07-10 20:25:17
评测时间
2020-07-10 20:25:17
评测机
分数
30
总耗时
135ms
峰值内存
9.414 MiB