foo.cc: In function 'int find_kth_fa(int, int)':
foo.cc:37:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
37 | if(k>d[x])return 0;if(k==0)return x;
| ^~
foo.cc:37:21: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
37 | if(k>d[x])return 0;if(k==0)return x;
| ^~
foo.cc: In function 'int main()':
foo.cc:46:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
46 | scanf("%d",&n);
| ~~~~~^~~~~~~~~
foo.cc:48:16: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
48 | int x,y;scanf("%d%d",&x,&y);
| ~~~~~^~~~~~~~~~~~~~
foo.cc:64:13: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
64 | int q;scanf("%d",&q);
| ~~~~~^~~~~~~~~
foo.cc:67:16: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
67 | int x,k;scanf("%d%d",&x,&k);
| ~~~~~^~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务