xorsum.cpp:17:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
17 | main(){
| ^
xorsum.cpp: In function 'int main()':
xorsum.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);
| ~~~~~^~~~~~~~~~~
xorsum.cpp:19:5: note: in expansion of macro 'scan1'
19 | scan1(n)
| ^~~~~
xorsum.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);
| ~~~~~^~~~~~~~~~~
xorsum.cpp:21:9: note: in expansion of macro 'scan1'
21 | scan1(q[i])
| ^~~~~
xorsum.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);
| ~~~~~^~~~~~~~~~~
xorsum.cpp:31:5: note: in expansion of macro 'scan1'
31 | scan1(t)
| ^~~~~
xorsum.cpp:11:27: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
11 | #define scan3(a,b,c) scanf("%lld %lld %lld",&a,&b,&c);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
xorsum.cpp:36:9: note: in expansion of macro 'scan3'
36 | scan3(l,r,x)
| ^~~~~