Wrong Answer

/in/foo.cc: In function 'int main()':
/in/foo.cc:32:7: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
       if(!pr[i])
       ^~
/in/foo.cc:34:4: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
    for(int j=0;j<cnt&&prime[j]*i<=n/2;j++)
    ^~~
/in/foo.cc:45:7: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
       if(!pr[i])
       ^~
/in/foo.cc:47:4: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
    for(int j=0;j<cnt&&prime[j]*i<=n;j++)
    ^~~
# 状态 耗时 内存占用
#1 Accepted 1ms 400.0 KiB
#2 Wrong Answer 56ms 6.551 MiB
#3 Accepted 1ms 368.0 KiB
#4 Accepted 1ms 376.0 KiB
#5 Accepted 1ms 376.0 KiB
#6 Accepted 1ms 376.0 KiB
#7 Wrong Answer 3ms 620.0 KiB
#8 Accepted 244ms 536.0 KiB
#9 Wrong Answer 37ms 4.473 MiB
#10 Wrong Answer 53ms 6.184 MiB

信息

递交者
类型
递交
题目
P1603 素数之和(prim)
语言
C++
递交时间
2024-05-15 23:12:07
评测时间
2024-05-15 23:12:07
评测机
分数
60
总耗时
404ms
峰值内存
6.551 MiB