/ Vijos /

记录详情

Wrong Answer

/in/foo.cc: In function 'int main()':
/in/foo.cc:7:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
     for (i=1;i<=p[0];i++) p[i]=0;for (i=2;i<=p[0];i++) if (p[i]==0) {a[0]++;a[a[0]]=i;j=i+i;while (j<=p[0]) {p[j]=1;j+=i;}}
     ^~~
/in/foo.cc:7:34: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
     for (i=1;i<=p[0];i++) p[i]=0;for (i=2;i<=p[0];i++) if (p[i]==0) {a[0]++;a[a[0]]=i;j=i+i;while (j<=p[0]) {p[j]=1;j+=i;}}
                                  ^~~
/in/foo.cc:9:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
     for (j=1;j<=a[0];j++) if (x%a[j]==0){y++;x/=a[j];if (x%a[j]==0) {y=-1;break;}}if (y!=-1) if (x>1) y++;
     ^~~
/in/foo.cc:9:83: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
     for (j=1;j<=a[0];j++) if (x%a[j]==0){y++;x/=a[j];if (x%a[j]==0) {y=-1;break;}}if (y!=-1) if (x>1) y++;
                                                                                   ^~
# 状态 耗时 内存占用
#1 Accepted 1ms 328.0 KiB
#2 Accepted 1ms 352.0 KiB
#3 Accepted 1ms 356.0 KiB
#4 Accepted 1ms 332.0 KiB
#5 Accepted 1ms 400.0 KiB
#6 Accepted 1ms 356.0 KiB
#7 Accepted 1ms 376.0 KiB
#8 Accepted 1ms 356.0 KiB
#9 Accepted 2ms 388.0 KiB
#10 Wrong Answer 9ms 1.027 MiB

信息

递交者
类型
递交
题目
P1732 能量采集
语言
C++
递交时间
2021-11-26 04:35:34
评测时间
2021-11-26 04:35:34
评测机
分数
90
总耗时
26ms
峰值内存
1.027 MiB