/ Vijos /

记录详情

Runtime Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:38:4: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
    if (vis[u]) continue; vis[u]=1,id[++tot]=u;
    ^~
/in/foo.cc:38: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:56:3: note: in expansion of macro 'rep'
   rep (i,1,pos) printf("%d ",id[i]),mk[id[i]]=1; puts("");
   ^~~
/in/foo.cc:56:50: 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]),mk[id[i]]=1; 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:70:3: note: in expansion of macro 'rep'
   rep (i,1,n) if (col[i]==pos) printf("%d ",i); puts("");
   ^~~
/in/foo.cc:70: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 Runtime Error 55ms 2.98 MiB
#2 Runtime Error 59ms 2.969 MiB
#3 Runtime Error 62ms 2.984 MiB
#4 Runtime Error 62ms 3.0 MiB
#5 Runtime Error 68ms 3.012 MiB
#6 Runtime Error 69ms 2.992 MiB
#7 Runtime Error 72ms 3.0 MiB
#8 Runtime Error 75ms 2.973 MiB
#9 Runtime Error 72ms 3.113 MiB
#10 Runtime Error 77ms 3.043 MiB

信息

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