/ 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 204.0 KiB
#2 Accepted 1ms 212.0 KiB
#3 Accepted 1ms 204.0 KiB
#4 Accepted 2ms 212.0 KiB

信息

递交者
类型
递交
题目
P1012 辉夜想要看烟花
比赛
2019网宿杯XMU程序设计竞赛网络预赛第二场
语言
C++
递交时间
2019-04-21 13:25:55
评测时间
2019-04-21 13:25:56
评测机
分数
100
总耗时
7ms
峰值内存
212.0 KiB