koala.cpp: In function 'int main()':
koala.cpp:17:9: error: 'cnt' was not declared in this scope
cnt=1000;
^~~
koala.cpp:17:9: note: suggested alternative: 'int'
cnt=1000;
^~~
int
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);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~