记录详情

Runtime Error

/in/foo.cc: In function 'bool check(dian)':
/in/foo.cc:96:52: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
   for(int i=old.x<rx?old.x:rx,j=old.x<rx?old.y:ry;i<=old.x<rx?rx:old.x&&j<=old.x<rx?ry:old.y;i++,j++){
                                                   ~^~~~~~~
/in/foo.cc:96:74: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
   for(int i=old.x<rx?old.x:rx,j=old.x<rx?old.y:ry;i<=old.x<rx?rx:old.x&&j<=old.x<rx?ry:old.y;i++,j++){
                                                                         ~^~~~~~~
/in/foo.cc:106:52: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
   for(int i=old.x<rx?old.x:rx,j=old.x<rx?old.y:ry;i<=old.x<rx?rx:old.x&&j>=old.x<rx?ry:old.y;i++,j--){
                                                   ~^~~~~~~
/in/foo.cc:106:74: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
   for(int i=old.x<rx?old.x:rx,j=old.x<rx?old.y:ry;i<=old.x<rx?rx:old.x&&j>=old.x<rx?ry:old.y;i++,j--){
                                                                         ~^~~~~~~
# 状态 耗时 内存占用
#1 Accepted 4ms 4.242 MiB
#2 Wrong Answer 4ms 4.18 MiB
#3 Accepted 4ms 4.227 MiB
#4 Accepted 4ms 4.242 MiB
#5 Runtime Error 4ms 4.297 MiB
#6 Runtime Error 4ms 4.41 MiB
#7 Runtime Error 5ms 4.395 MiB
#8 Wrong Answer 6ms 4.516 MiB
#9 Accepted 5ms 4.676 MiB
#10 Wrong Answer 6ms 4.852 MiB

信息

递交者
类型
递交
题目
P1009 龙&虫(dragon,1s.256MB)
题目数据
下载
语言
C++
递交时间
2022-06-08 09:11:53
评测时间
2022-06-08 09:11:53
评测机
分数
40
总耗时
50ms
峰值内存
4.852 MiB