Wrong Answer

/in/foo.cc: In function 'int main()':
/in/foo.cc:34:9: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
    mid=L+R>>1;//cout<<"L="<<L<<" R="<<R<<endl;
        ~^~
/in/foo.cc:38:8: warning: 'res' may be used uninitialized in this function [-Wmaybe-uninitialized]
  cout<<res<<endl;
        ^~~
# 状态 耗时 内存占用
#1 Accepted 1ms 204.0 KiB
#2 Wrong Answer 1ms 220.0 KiB
#3 Wrong Answer 13ms 696.0 KiB
#4 Wrong Answer 11ms 692.0 KiB
#5 Wrong Answer 14ms 592.0 KiB

信息

递交者
类型
递交
题目
「一本通 1.2 练习 1」数列分段 II
语言
C++
递交时间
2021-07-02 19:54:40
评测时间
2021-07-02 19:54:40
评测机
分数
20
总耗时
43ms
峰值内存
696.0 KiB