Accepted

foo.cc: In function 'int add(int, int)':
foo.cc:10:60: warning: no return statement in function returning non-void [-Wreturn-type]
 int add(int x,int y){for(int i=x;i<=N;i+=lowbit(i))s[i]+=y;}//注意到N
                                                            ^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2ms 416.0 KiB
#2 Accepted 1ms 424.0 KiB
#3 Accepted 2ms 384.0 KiB
#4 Accepted 2ms 376.0 KiB
#5 Accepted 22ms 720.0 KiB
#6 Accepted 21ms 812.0 KiB
#7 Accepted 24ms 744.0 KiB
#8 Accepted 22ms 668.0 KiB
#9 Accepted 16ms 648.0 KiB
#10 Accepted 17ms 808.0 KiB

信息

递交者
类型
递交
题目
「一本通 4.1 例 2」数星星 Stars
语言
C++
递交时间
2021-08-18 14:41:19
评测时间
2021-08-18 14:41:19
评测机
分数
100
总耗时
133ms
峰值内存
812.0 KiB