/ XMU_ACM /

记录详情

Accepted

/in/foo.cc: In function 'int main()':
/in/foo.cc:19:13: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
             for(int j=0;j<d;j++) if(j==i||j==d/2||j==d-i-1) {printf("*");printf(" ");} else {printf(" ");printf(" ");}printf("\n");
             ^~~
/in/foo.cc:19:119: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
             for(int j=0;j<d;j++) if(j==i||j==d/2||j==d-i-1) {printf("*");printf(" ");} else {printf(" ");printf(" ");}printf("\n");
                                                                                                                       ^~~~~~
/in/foo.cc:24:13: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
             for(int l=0;l<d;l++) if(l==d/2-s||l==d/2+s||l==d/2) {printf("*");printf(" ");} else {printf(" ");printf(" ");}printf("\n");
             ^~~
/in/foo.cc:24:123: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
             for(int l=0;l<d;l++) if(l==d/2-s||l==d/2+s||l==d/2) {printf("*");printf(" ");} else {printf(" ");printf(" ");}printf("\n");
                                                                                                                           ^~~~~~
# 状态 耗时 内存占用
#1 Accepted 1ms 200.0 KiB
#2 Accepted 1ms 212.0 KiB

信息

递交者
类型
自测
题目
P1012 辉夜想要看烟花
语言
C++
递交时间
2019-04-21 13:25:45
评测时间
2019-04-21 13:25:45
评测机
分数
20
总耗时
2ms
峰值内存
212.0 KiB