kitchen.cpp: In function 'int main()':
kitchen.cpp:21:9: error: 'memset' was not declared in this scope
21 | memset(dp, 0xbf, sizeof dp);
| ^~~~~~
kitchen.cpp:4:1: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
3 | #include <algorithm>
+++ |+#include <cstring>
4 |
kitchen.cpp:12:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
12 | scanf("%d%d%d", &n, &m, &k);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~
kitchen.cpp:14:22: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
14 | scanf("%d", &a[i]), sum += a[i];
| ~~~~~^~~~~~~~~~~~~
kitchen.cpp:24:22: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
24 | scanf("%d", &b[i]);
| ~~~~~^~~~~~~~~~~~~