hunter.cpp: In function 'int main()':
hunter.cpp:26:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
else if (j >= shr.size()) j = shr.size() - 1;
^
hunter.cpp:29:10: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (j != shr.size() - 1)
^
hunter.cpp:14:6: warning: unused variable 'i' [-Wunused-variable]
int i;
^
hunter.cpp:11:29: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d", &m, &n, &l);
^
hunter.cpp:15:50: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for (int i = 0; i < m; i++) scanf("%d", &shr[i]);
^
hunter.cpp:22:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &a, &b);
^