/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'int find(int)':
/in/foo.cc:9:26: warning: capture of variable 'father' with non-automatic storage duration
   return father[x]=find([father[x]);
                          ^~~~~~
/in/foo.cc:4:5: note: 'int father [50001]' declared here
 int father [50001];
     ^~~~~~
/in/foo.cc:9:32: error: expected ',' before '[' token
   return father[x]=find([father[x]);
                                ^
/in/foo.cc:9:32: error: expected identifier before '[' token
/in/foo.cc:9:36: error: expected ']' before ';' token
   return father[x]=find([father[x]);
                                    ^
/in/foo.cc: In lambda function:
/in/foo.cc:9:36: error: expected '{' before ';' token
/in/foo.cc: In function 'int find(int)':
/in/foo.cc:9:36: error: expected ')' before ';' token
/in/foo.cc: In function 'int main()':
/in/foo.cc:17:15: warning: left operand of comma operator has no effect [-Wunused-value]
  for(int i=1;i<=n,i++)
              ~^~~
/in/foo.cc:17:22: error: expected ';' before ')' token
  for(int i=1;i<=n,i++)
                      ^
/in/foo.cc:33:18: error: 'ptintf' was not declared in this scope
    ptintf("Yes\n");
                  ^

信息

递交者
类型
自测
题目
P1034 家族
语言
C++
递交时间
2018-08-10 11:59:55
评测时间
2018-08-10 11:59:55
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes