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:37:31: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   37 |         return a%400==0||a%100&&a%4==0;
      |                          ~~~~~^~~~~~~~
# 状态 耗时 内存占用
#1 Wrong Answer 11ms 9.93 MiB
#2 Wrong Answer 10ms 9.879 MiB
#3 Wrong Answer 134ms 67.102 MiB
#4 Wrong Answer 21ms 14.965 MiB
#5 Accepted 12ms 10.031 MiB
#6 Wrong Answer 33ms 20.785 MiB
#7 Wrong Answer 18ms 13.902 MiB
#8 Wrong Answer 28ms 18.52 MiB
#9 Wrong Answer 79ms 43.629 MiB
#10 Wrong Answer 162ms 83.0 MiB

信息

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