Runtime Error

foo.cc: In function ‘int pdrun(int)’:
foo.cc:10:26: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
   10 |         return a%400||a%4&&a%100!=0;
      |                       ~~~^~~~~~~~~~
foo.cc: In function ‘int main()’:
foo.cc:48:64: warning: operation on ‘xb_2’ may be undefined [-Wsequence-point]
   48 |                 if (i==1||i==4||i==6||i==8||i==9) flag=0,serch[++xb_2]=serch[xb_2-1]+i;
      |                                                                ^~~~~~
foo.cc:48:64: warning: operation on ‘xb_2’ may be undefined [-Wsequence-point]
foo.cc:49:74: warning: operation on ‘xb_2’ may be undefined [-Wsequence-point]
   49 |                 else if(i%10!=1&&i%10!=3&&i%10!=7&&i%10!=9) flag=0,serch[++xb_2]=serch[xb_2-1]+i;
      |                                                                          ^~~~~~
foo.cc:49:74: warning: operation on ‘xb_2’ may be undefined [-Wsequence-point]
foo.cc:56:47: warning: operation on ‘xb_2’ may be undefined [-Wsequence-point]
   56 |                                         serch[++xb_2]=serch[xb_2-1]+i;
      |                                               ^~~~~~
foo.cc:56:47: warning: operation on ‘xb_2’ may be undefined [-Wsequence-point]
foo.cc:62:33: warning: operation on ‘xb_2’ may be undefined [-Wsequence-point]
   62 |                 if (flag) serch[++xb_2]=serch[xb_2-1];
      |                                 ^~~~~~
foo.cc:62:33: warning: operation on ‘xb_2’ may be undefined [-Wsequence-point]
# 状态 耗时 内存占用
#1 Runtime Error Segmentation fault 14ms 4.234 MiB
#2 Runtime Error Segmentation fault 12ms 4.254 MiB
#3 Wrong Answer On line 1: Read 24, expect 102. 3ms 500.0 KiB
#4 Wrong Answer On line 1: Read FALSE, expect 102. 3ms 512.0 KiB
#5 Wrong Answer On line 1: Read FALSE, expect 136083320310. 6ms 1.746 MiB
#6 Wrong Answer On line 1: Read FALSE, expect 15941113. 2ms 508.0 KiB
#7 Runtime Error Segmentation fault 13ms 4.25 MiB
#8 Wrong Answer On line 1: Read 1721060804, expect 11027171746. 5ms 1.051 MiB
#9 Wrong Answer On line 1: Read FALSE, expect 2267652139973. 9ms 2.996 MiB
#10 Wrong Answer On line 1: Read 668168011, expect 6084131623. 12ms 3.949 MiB

信息

递交者
类型
递交
题目
P3077 家庭 202602saccc五级T2
语言
C++
递交时间
2026-04-17 22:04:05
评测时间
2026-04-17 22:04:05
评测机
分数
0
总耗时
82ms
峰值内存
4.254 MiB