garage.cpp: In function 'int main()':
garage.cpp:8:9: warning: unused variable 'j' [-Wunused-variable]
int i, j, n, m, ans = 0; scanf("%d%d", &n, &m);
^
garage.cpp:8:32: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
int i, j, n, m, ans = 0; scanf("%d%d", &n, &m);
~~~~~^~~~~~~~~~~~~~~~
garage.cpp:9:36: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for (i = 1; i <= n; i++)H.push(-i), scanf("%d", &C[i]);
~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
garage.cpp:10:31: 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", &V[i]);
~~~~~^~~~~~~~~~~~~
garage.cpp:12:15: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
int x; scanf("%d", &x);
~~~~~^~~~~~~~~~