oddeven.cpp:27:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
27 | main(){
| ^
oddeven.cpp: In function 'int main()':
oddeven.cpp:35:18: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
35 | int m = l+r>>1;
| ~^~
oddeven.cpp:28:9: warning: unused variable 'i' [-Wunused-variable]
28 | int i,c=1,cnt=0,l=1,r=INF;
| ^
oddeven.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);
| ~~~~~^~~~~~~~~~~
oddeven.cpp:29:5: note: in expansion of macro 'scan1'
29 | scan1(n)
| ^~~~~