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)提供评测服务