jobs.cpp: In function 'int main()':
jobs.cpp:57:6: warning: unused variable 'u' [-Wunused-variable]
int u = 0,id=0;
^
jobs.cpp:37:10: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("input.txt","r",stdin);
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
jobs.cpp:39:7: 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:42:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&j[i].first);
~~~~~^~~~~~~~~~~~~~~~~~