jobs.cpp: In function 'int main()':
jobs.cpp:31:14: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
md = l + r >> 1;
~~^~~
jobs.cpp:36:27: warning: unused variable 'ls' [-Wunused-variable]
int day = 0, av = an, ls = 0;
^~
jobs.cpp:23: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:25: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:39:6: warning: 'av' may be used uninitialized in this function [-Wmaybe-uninitialized]
--av;
^~~~