Runtime Error

/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 9.906 MiB
#2 Wrong Answer 11ms 9.863 MiB
#3 Runtime Error 14ms 10.125 MiB
#4 Runtime Error 14ms 10.191 MiB
#5 Wrong Answer 12ms 10.074 MiB
#6 Runtime Error 13ms 10.125 MiB
#7 Runtime Error 12ms 10.062 MiB
#8 Wrong Answer 27ms 18.52 MiB
#9 Runtime Error 14ms 10.117 MiB
#10 Runtime Error 14ms 10.121 MiB

信息

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