kitchen.cpp: In function 'bool simul(std::vector<int>, int, int)':
kitchen.cpp:15:7: warning: unused variable 'g' [-Wunused-variable]
int g = A[i] - k;
^
kitchen.cpp: In function 'int main()':
kitchen.cpp:60:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (V[i].size()>=k && simul(V[i], n, k)) {
~~~~~~~~~~~^~~
kitchen.cpp:50:6: warning: unused variable 'ans' [-Wunused-variable]
int ans = -1;
^~~
kitchen.cpp:25:36: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
int n, m, k, i, j, aSum = 0; scanf("%d%d%d", &n, &m, &k);
~~~~~^~~~~~~~~~~~~~~~~~~~~~
kitchen.cpp:27:21: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &A[i]), aSum += A[i];
~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
kitchen.cpp:33:32: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for (i = 1; i <= m; i++) scanf("%d", &B[i]);
~~~~~^~~~~~~~~~~~~