Wrong Answer

/in/foo.cc: In function 'void Find()':
/in/foo.cc:25:40: warning: operation on 'xb_2' may be undefined [-Wsequence-point]
   25 |                 if (IsPrime[i]) primes[++xb_2]=primes[xb_2-1]+i,prime.push_back(i);
      |                                        ^~~~~~
/in/foo.cc:25:40: warning: operation on 'xb_2' may be undefined [-Wsequence-point]
/in/foo.cc:26:29: warning: operation on 'xb_2' may be undefined [-Wsequence-point]
   26 |                 else primes[++xb_2]=primes[xb_2-1];
      |                             ^~~~~~
/in/foo.cc:26:29: warning: operation on 'xb_2' may be undefined [-Wsequence-point]
/in/foo.cc:27:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   27 |                 for (int j=0;j<prime.size()&&i*prime[j]<maxx;j++)
      |                              ~^~~~~~~~~~~~~
/in/foo.cc: In function 'bool pdrun(int)':
/in/foo.cc:38:31: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   38 |         return a%400==0||a%100&&a%4==0;
      |                          ~~~~~^~~~~~~~
# 状态 耗时 内存占用
#1 Wrong Answer 12ms 10.074 MiB
#2 Wrong Answer 11ms 9.883 MiB
#3 Wrong Answer 139ms 66.945 MiB
#4 Wrong Answer 21ms 14.992 MiB
#5 Accepted 12ms 10.078 MiB
#6 Wrong Answer 34ms 20.688 MiB
#7 Wrong Answer 20ms 13.926 MiB
#8 Wrong Answer 30ms 18.438 MiB
#9 Wrong Answer 83ms 43.543 MiB
#10 Wrong Answer 167ms 83.043 MiB

信息

递交者
类型
递交
题目
P3077 家庭 202602saccc五级T2
语言
C++
递交时间
2026-04-19 13:20:48
评测时间
2026-04-19 13:20:48
评测机
分数
10
总耗时
535ms
峰值内存
83.043 MiB