jobs.cpp: In function 'int main()':
jobs.cpp:32:14: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
md = l + r >> 1;
~~^~~
jobs.cpp:37:27: warning: unused variable 'ls' [-Wunused-variable]
int day = 0, av = an, ls = 0;
^~
jobs.cpp:24:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d", &n, &d, &m);
~~~~~^~~~~~~~~~~~~~~~~~~~~~
jobs.cpp:26:11: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &v[i].first);
~~~~~^~~~~~~~~~~~~~~~~~~
jobs.cpp:40:6: warning: 'av' may be used uninitialized in this function [-Wmaybe-uninitialized]
--av;
^~~~