foo.cc: In function 'bool input()':
foo.cc:44:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
44 | scanf("%d%d%d",&N,&M,&K);
| ~~~~~^~~~~~~~~~~~~~~~~~~
foo.cc:51:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
51 | scanf("%d%d%d",&a,&b,&c);
| ~~~~~^~~~~~~~~~~~~~~~~~~
foo.cc: In function 'int solve_aux_3()':
foo.cc:149:8: warning: 'ans' may be used uninitialized in this function [-Wmaybe-uninitialized]
149 | return ans;
| ^~~
foo.cc: In function 'int solve_aux_2()':
foo.cc:212:8: warning: 'ans' may be used uninitialized in this function [-Wmaybe-uninitialized]
212 | return ans;
| ^~~
[Hydro](https://hydro.ac)提供评测服务