记录详情

Runtime Error

foo.cc: In member function 'void tree::build(int, int, int)':
foo.cc:19:21: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
   19 |         int mid = L + R >> 1;
      |                   ~~^~~
foo.cc: In member function 'void tree::modify(int, int, int, int)':
foo.cc:29:27: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
   29 |         int mid = nd[p].L + nd[p].R >> 1;
      |                   ~~~~~~~~^~~~~~~~~
foo.cc: In member function 'void tree::query(int, int)':
foo.cc:42:27: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
   42 |         int mid = nd[p].L + nd[p].R >> 1;
      |                   ~~~~~~~~^~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:51:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   51 |     scanf("%d %d", &n, &q);
      |     ~~~~~^~~~~~~~~~~~~~~~~
foo.cc:60:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   60 |         scanf("%d", &op);
      |         ~~~~~^~~~~~~~~~~
foo.cc:64:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   64 |             scanf("%d %d %d", &l, &r, &v);
      |             ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:68:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   68 |             scanf("%d %d", &x, &v);
      |             ~~~~~^~~~~~~~~~~~~~~~~
foo.cc:71:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   71 |             scanf("%d", &x);
      |             ~~~~~^~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Runtime Error Floating point exception 4ms 524.0 KiB
#2 Runtime Error Floating point exception 3ms 512.0 KiB
#3 Runtime Error Floating point exception 5ms 512.0 KiB
#4 Runtime Error Floating point exception 3ms 512.0 KiB
#5 Runtime Error Floating point exception 3ms 512.0 KiB
#6 Runtime Error Floating point exception 4ms 512.0 KiB
#7 Runtime Error Floating point exception 4ms 512.0 KiB
#8 Runtime Error Floating point exception 164ms 16.992 MiB
#9 Wrong Answer Read 797930042, expect 1886873353. 568ms 17.992 MiB
#10 Runtime Error Floating point exception 192ms 16.992 MiB

信息

递交者
类型
递交
题目
P1384 Problem C. Segtree Master
语言
C++
递交时间
2022-07-09 17:02:27
评测时间
2022-07-09 17:02:27
评测机
分数
0
总耗时
955ms
峰值内存
17.992 MiB