Runtime Error

/in/foo.cc: In function 'bool isrun(long long int)':
/in/foo.cc:7:25: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
    7 |         return year%4==0&&year%100!=0||year%400==0;
      |                ~~~~~~~~~^~~~~~~~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:46:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   46 |                 if(IsPrime[i]);
      |                 ^~
/in/foo.cc:47:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
   47 |                 {
      |                 ^
/in/foo.cc:55:49: warning: unused variable 'mod3' [-Wunused-variable]
   55 |                 int y[4],m[4],d[4],md,mod1,mod2,mod3,ans=0;
      |                                                 ^~~~
# 状态 耗时 内存占用
#1 Runtime Error 12ms 10.074 MiB
#2 Runtime Error 12ms 10.07 MiB
#3 Runtime Error 14ms 10.074 MiB
#4 Runtime Error 15ms 10.133 MiB
#5 Runtime Error 15ms 10.117 MiB
#6 Runtime Error 12ms 10.074 MiB
#7 Runtime Error 13ms 9.965 MiB
#8 Runtime Error 11ms 9.969 MiB
#9 Runtime Error 11ms 9.98 MiB
#10 Runtime Error 11ms 10.113 MiB

信息

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