/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'int main()':
/in/foo.cc:29:16: warning: overflow in implicit constant conversion [-Woverflow]
         temp = 0x7f7f7f7f7f;
                ^~~~~~~~~~~~
/in/foo.cc:30:15: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
         if (br>=bl & cr>=cl) {temp=b[bl]+c[cl];flag=1;}
             ~~^~~~
/in/foo.cc:16:18: warning: iteration 20003 invokes undefined behavior [-Waggressive-loop-optimizations]
         while(a[i])
               ~~~^
/in/foo.cc:15:14: note: within this loop
     for(i=1;i<=N;i++)
              ^
/in/foo.cc:40:9: warning: 'flag' may be used uninitialized in this function [-Wmaybe-uninitialized]
         if (flag==3)
         ^~
# 状态 耗时 内存占用
#1 Accepted 4ms 512.0 KiB
#2 Accepted 3ms 512.0 KiB
#3 Accepted 2ms 504.0 KiB
#4 Accepted 3ms 472.0 KiB
#5 Accepted 4ms 640.0 KiB
#6 Accepted 6ms 384.0 KiB
#7 Accepted 9ms 468.0 KiB
#8 Accepted 3ms 460.0 KiB
#9 Accepted 5ms 488.0 KiB
#10 Accepted 5ms 472.0 KiB

信息

递交者
类型
递交
题目
P1097 合并果子
语言
C++
递交时间
2018-04-23 23:17:17
评测时间
2018-04-23 23:17:17
评测机
分数
100
总耗时
49ms
峰值内存
640.0 KiB