kitchen.cpp: In function 'int main()':
kitchen.cpp:5:31: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d", &n, &m, &k), dp[0] = 1;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
kitchen.cpp:6:49: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for (int i = 1; i <= n; i++) scanf("%d", &a[i]), sm += a[i];
~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
kitchen.cpp:7:36: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for (int i = 1; i <= m; i++) scanf("%d", &b[i]);
~~~~~^~~~~~~~~~~~~