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