/ Vijos /

记录详情

Runtime Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:5:13: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
 #define dbg if(debugflag)
             ^
/in/foo.cc:40:3: note: in expansion of macro 'dbg'
   dbg  printf("=====IN POS #%d=====\n",i);
   ^~~
/in/foo.cc:41:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
     rec1=appr[1];rec2=rec3=0;
     ^~~~
/in/foo.cc:44:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
      if(que[target].size()==que[target].top().value && rec1 && !rec2)
         ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.cc:5:13: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
 #define dbg if(debugflag)
             ^
/in/foo.cc:57:3: note: in expansion of macro 'dbg'
   dbg  printf("Upd REC2=%d REC4=%d P=%d Q=%d\n",rec2,rec4,p,q);
   ^~~
/in/foo.cc:58:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
     if(rec2>p || (rec2==p && rec4<q))
     ^~
/in/foo.cc:73:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    if(que[target].size()==que[target].top().value && rec1 && !rec2)
       ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Wrong Answer 5ms 348.0 KiB
#2 Wrong Answer 4ms 364.0 KiB
#3 Wrong Answer 8ms 384.0 KiB
#4 Wrong Answer 36ms 332.0 KiB
#5 Wrong Answer 75ms 352.0 KiB
#6 Runtime Error 4ms 380.0 KiB
#7 Runtime Error 3ms 348.0 KiB
#8 Runtime Error 4ms 360.0 KiB
#9 Runtime Error 4ms 372.0 KiB
#10 Runtime Error 4ms 384.0 KiB

信息

递交者
类型
递交
题目
P1381 丰盛的晚宴
语言
C++
递交时间
2017-10-12 20:04:33
评测时间
2017-10-12 20:04:33
评测机
分数
0
总耗时
149ms
峰值内存
384.0 KiB