foo.cc: In function 'int main()':
foo.cc:16:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d",&n,&na,&nb);
~~~~~^~~~~~~~~~~~~~~~~~~~~
foo.cc:18:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&(ka[i]));
~~~~~^~~~~~~~~~~~~~~
foo.cc:20:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&(kb[i]));
~~~~~^~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务