记录详情

Runtime Error

foo.cc: In member function 'void tree::build(int, int, int)':
foo.cc:23:21: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
   23 |         int mid = L + R >> 1;
      |                   ~~^~~
foo.cc: In member function 'void tree::modify(int, int, int, int)':
foo.cc:37:27: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
   37 |         int mid = nd[p].L + nd[p].R >> 1;
      |                   ~~~~~~~~^~~~~~~~~
foo.cc: In member function 'void tree::query(int, int)':
foo.cc:58:27: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
   58 |         int mid = nd[p].L + nd[p].R >> 1;
      |                   ~~~~~~~~^~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:78:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
   78 |     freopen("81In.txt", "r", stdin);
      |     ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:79:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
   79 |     freopen("83Out.txt", "w", stdout);
      |     ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Runtime Error Segmentation fault 98ms 64.617 MiB
#2 Runtime Error Segmentation fault 89ms 64.613 MiB
#3 Runtime Error Segmentation fault 100ms 64.617 MiB
#4 Runtime Error Segmentation fault 91ms 64.617 MiB
#5 Runtime Error Segmentation fault 90ms 64.617 MiB
#6 Runtime Error Segmentation fault 84ms 64.617 MiB
#7 Runtime Error Segmentation fault 88ms 64.617 MiB
#8 Runtime Error Segmentation fault 63ms 64.617 MiB
#9 Runtime Error Segmentation fault 92ms 64.621 MiB
#10 Runtime Error Segmentation fault 76ms 64.617 MiB

信息

递交者
类型
递交
题目
P1384 Problem C. Segtree Master
语言
C++
递交时间
2022-07-13 01:20:03
评测时间
2022-07-13 01:20:03
评测机
分数
0
总耗时
875ms
峰值内存
64.621 MiB