/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'int main()':
/in/foo.cc:40:4: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
    if (vis[u]) continue; vis[u]=1,id[++tot]=u;
    ^~
/in/foo.cc:40:26: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
    if (vis[u]) continue; vis[u]=1,id[++tot]=u;
                          ^~~
/in/foo.cc:2:20: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
 #define rep(i,x,y) for (int i=(x);i<=(y);i++)
                    ^
/in/foo.cc:60:3: note: in expansion of macro 'rep'
   rep (i,1,pos) printf("%d ",id[i]); puts("");
   ^~~
/in/foo.cc:60:38: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
   rep (i,1,pos) printf("%d ",id[i]); puts("");
                                      ^~~~
/in/foo.cc:2:20: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
 #define rep(i,x,y) for (int i=(x);i<=(y);i++)
                    ^
/in/foo.cc:76:3: note: in expansion of macro 'rep'
   rep (i,1,n) if (col[i]==pos) printf("%d ",i); puts("");
   ^~~
/in/foo.cc:76:49: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
   rep (i,1,n) if (col[i]==pos) printf("%d ",i); puts("");
                                                 ^~~~
# 状态 耗时 内存占用
#1 Accepted 173ms 4.613 MiB
#2 Accepted 186ms 4.59 MiB
#3 Accepted 192ms 4.582 MiB
#4 Accepted 183ms 4.582 MiB
#5 Accepted 200ms 4.594 MiB
#6 Accepted 192ms 4.613 MiB
#7 Accepted 202ms 4.645 MiB
#8 Accepted 202ms 4.668 MiB
#9 Accepted 214ms 4.711 MiB
#10 Accepted 219ms 4.684 MiB

信息

递交者
类型
递交
题目
P2054 热闹的聚会与尴尬的聚会
语言
C++
递交时间
2019-05-07 20:39:08
评测时间
2019-05-07 20:39:08
评测机
分数
100
总耗时
1967ms
峰值内存
4.711 MiB