nicegift.cpp:17:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
17 | main(){
| ^
nicegift.cpp: In function 'int main()':
nicegift.cpp:19:15: warning: unused variable 'j' [-Wunused-variable]
19 | int n,m,i,j,sum=0,ans=1;
| ^
nicegift.cpp:10:25: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
10 | #define scan2(a,b) scanf("%lld %lld",&a, &b);
| ~~~~~^~~~~~~~~~~~~~~~~~~~
nicegift.cpp:20:5: note: in expansion of macro 'scan2'
20 | scan2(n,m)
| ^~~~~
nicegift.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);
| ~~~~~^~~~~~~~~~~
nicegift.cpp:22:9: note: in expansion of macro 'scan1'
22 | scan1(q[i])
| ^~~~~