foo.cc: In function 'int main()':
foo.cc:57:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &digit);
~~~~~^~~~~~~~~~~~~~
foo.cc:58:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &leftNum);
~~~~~^~~~~~~~~~~~~~~~
foo.cc:59:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &rightNum);
~~~~~^~~~~~~~~~~~~~~~~
foo.cc:61:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &p[i]);
~~~~~^~~~~~~~~~~~~
foo.cc:62:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &q[i]);
~~~~~^~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务