koala.cpp: In function 'int main()':
koala.cpp:10:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld%lld%lld%lld%lld",&k,&m,&d,&a,&n);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
koala.cpp:11:28: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for(i=2;i<n+2;i++)scanf("%lld%lld",&p[i].fr,&p[i].sc);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~