segments.cpp:18:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
18 | main(){
| ^
segments.cpp: In function 'int main()':
segments.cpp:19:11: warning: unused variable 'm' [-Wunused-variable]
19 | int n,m,i,j;
| ^
segments.cpp:9:23: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
9 | #define scan1(a) scanf("%lld",&a);
| ~~~~~^~~~~~~~~~~
segments.cpp:20:5: note: in expansion of macro 'scan1'
20 | scan1(n)
| ^~~~~
segments.cpp:9:23: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
9 | #define scan1(a) scanf("%lld",&a);
| ~~~~~^~~~~~~~~~~
segments.cpp:23:9: note: in expansion of macro 'scan1'
23 | scan1(x)
| ^~~~~