route.cpp:28:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
28 | main(){
| ^
route.cpp: In function 'int main()':
route.cpp:40:18: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
40 | int m = l+r>>1;
| ~^~
route.cpp:29:11: warning: unused variable 'j' [-Wunused-variable]
29 | int i,j,k,ans=0;
| ^
route.cpp:12:25: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
12 | #define scan2(a,b) scanf("%lld %lld",&a, &b);
| ~~~~~^~~~~~~~~~~~~~~~~~~~
route.cpp:30:5: note: in expansion of macro 'scan2'
30 | scan2(n,k)
| ^~~~~
route.cpp:11:23: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
11 | #define scan1(a) scanf("%lld",&a);
| ~~~~~^~~~~~~~~~~
route.cpp:32:9: note: in expansion of macro 'scan1'
32 | scan1(q[i])
| ^~~~~