events.cpp: In function 'int main()':
events.cpp:11:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
11 | scanf("%d %d",&n,&q);
| ~~~~~^~~~~~~~~~~~~~~
events.cpp:13:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
13 | scanf("%d %d",&s[i],&e[i]);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~
events.cpp:16:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
16 | scanf("%d %d",&a,&b);
| ~~~~~^~~~~~~~~~~~~~~