/ Vijos /

记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:26:6: warning: init-statement in selection statements only available with -std=c++1z or -std=gnu++1z
   if(find(a)==find(b)
      ^~~~
foo.cc:27:6: error: expected ';' before 'printf'
      printf("Yes\n");
      ^~~~~~
foo.cc:26:13: warning: value computed is not used [-Wunused-value]
   if(find(a)==find(b)
      ~~~~~~~^~~~~~~~~
foo.cc:28:3: error: expected primary-expression before 'else'
   else
   ^~~~
foo.cc:28:3: error: expected ')' before 'else'
foo.cc:13:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d%d%d",&n,&m,&p);
  ~~~~~^~~~~~~~~~~~~~~~~~~
foo.cc:19:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d%d",&a,&b);
   ~~~~~^~~~~~~~~~~~~~
foo.cc:25:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d%d",&a,&b);
   ~~~~~^~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1034 家族
语言
C++
递交时间
2021-07-11 10:18:43
评测时间
2021-07-11 10:18:44
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes