garage.cpp: In function 'int main()':
garage.cpp:16:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
16 | scanf("%d%d",&n,&m);
| ~~~~~^~~~~~~~~~~~~~
garage.cpp:17:34: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
17 | for(int i=1; i<=n; ++i) scanf("%d",sc+i);
| ~~~~~^~~~~~~~~~~
garage.cpp:18:34: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
18 | for(int i=1; i<=m; ++i) scanf("%d",ww+i);
| ~~~~~^~~~~~~~~~~
garage.cpp:22:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
22 | scanf("%d",&a);
| ~~~~~^~~~~~~~~