记录详情

Runtime Error

foo.cc: In function 'long long int dfs(int, int, int, int, long long int)':
foo.cc:10:42: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
   10 |         int maxnn=max(f[l][x-1],f[r-(1<<x-1)+1][x-1]);
      |                                         ~^~
foo.cc: In function 'int main()':
foo.cc:38:56: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
   38 |                         f[j][i]=max(f[j][i-1],f[j+(1<<i-1)][i-1]);
      |                                                       ~^~
foo.cc:42:41: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
   42 |         int maxn=max(f[1][x-1],f[n-(1<<x-1)+1][x-1]);
      |                                        ~^~
foo.cc: In function 'long long int dfs(int, int, int, int, long long int)':
foo.cc:23:1: warning: control reaches end of non-void function [-Wreturn-type]
   23 | }
      | ^
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Runtime Error Segmentation fault 2ms 396.0 KiB
#2 Runtime Error Segmentation fault 2ms 384.0 KiB
#3 Runtime Error Segmentation fault 3ms 380.0 KiB
#4 Runtime Error Segmentation fault 2ms 384.0 KiB
#5 Runtime Error Segmentation fault 2ms 512.0 KiB
#6 Runtime Error Segmentation fault 3ms 512.0 KiB
#7 Runtime Error Segmentation fault 4ms 512.0 KiB
#8 Runtime Error Segmentation fault 4ms 768.0 KiB
#9 Runtime Error Segmentation fault 2ms 640.0 KiB
#10 Runtime Error Segmentation fault 2ms 640.0 KiB
#11 Runtime Error Segmentation fault 5ms 2.75 MiB
#12 Runtime Error Segmentation fault 5ms 2.75 MiB
#13 Runtime Error Segmentation fault 11ms 2.75 MiB
#14 Runtime Error Segmentation fault 6ms 2.875 MiB
#15 Runtime Error Segmentation fault 6ms 2.75 MiB
#16 Runtime Error Segmentation fault 6ms 2.875 MiB
#17 Runtime Error Segmentation fault 6ms 2.875 MiB
#18 Runtime Error Segmentation fault 18ms 2.875 MiB
#19 Runtime Error Segmentation fault 6ms 2.75 MiB
#20 Runtime Error Segmentation fault 5ms 2.75 MiB

信息

递交者
类型
递交
题目
题3 聪明伶俐的香穗子
题目数据
下载
语言
C++
递交时间
2022-08-19 21:28:28
评测时间
2022-08-19 21:28:28
评测机
分数
0
总耗时
108ms
峰值内存
2.875 MiB