arranging_tickets.cpp: In function 'int main()':
arranging_tickets.cpp:106:26: warning: format '%d' expects a matching 'int' argument [-Wformat=]
106 | printf("%d %d %d\n")
| ~^
| |
| int
arranging_tickets.cpp:106:29: warning: format '%d' expects a matching 'int' argument [-Wformat=]
106 | printf("%d %d %d\n")
| ~^
| |
| int
arranging_tickets.cpp:106:32: warning: format '%d' expects a matching 'int' argument [-Wformat=]
106 | printf("%d %d %d\n")
| ~^
| |
| int
arranging_tickets.cpp:106:37: error: expected ';' before 'if'
106 | printf("%d %d %d\n")
| ^
| ;
107 |
108 | if(die){
| ~~
arranging_tickets.cpp:111:17: error: 'else' without a previous 'if'
111 | else e = m;
| ^~~~
arranging_tickets.cpp:13:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
13 | scanf(" %d",&N);
| ~~~~~^~~~~~~~~~
arranging_tickets.cpp:14:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
14 | scanf(" %d",&M);
| ~~~~~^~~~~~~~~~
arranging_tickets.cpp:17:22: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
17 | scanf(" %d",&l[i]);
| ~~~~~^~~~~~~~~~~~~
arranging_tickets.cpp:18:22: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
18 | scanf(" %d",&r[i]);
| ~~~~~^~~~~~~~~~~~~
arranging_tickets.cpp:25:22: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
25 | scanf(" %d",&h);
| ~~~~~^~~~~~~~~~