game.cpp: In function 'long long int fun2(long long int)':
game.cpp:27:19: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
27 | if (p < x && x < q[i] ||
| ~~~~~~^~~~~~~~~~~
game.cpp: At global scope:
game.cpp:35:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
35 | main(){
| ^
game.cpp: In function 'int main()':
game.cpp:36:13: warning: unused variable 'j' [-Wunused-variable]
36 | int m,i,j,k,b=0;
| ^
game.cpp:36:15: warning: unused variable 'k' [-Wunused-variable]
36 | int m,i,j,k,b=0;
| ^
game.cpp: In function 'void fun1(long long int)':
game.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);
| ~~~~~^~~~~~~~~~~
game.cpp:20:5: note: in expansion of macro 'scan1'
20 | scan1(y)
| ^~~~~
game.cpp: In function 'int main()':
game.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);
| ~~~~~^~~~~~~~~~~~~~~~~~~~
game.cpp:37:5: note: in expansion of macro 'scan2'
37 | scan2(n,m)
| ^~~~~
game.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);
| ~~~~~^~~~~~~~~~~
game.cpp:40:9: note: in expansion of macro 'scan1'
40 | scan1(q[i])
| ^~~~~
game.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);
| ~~~~~^~~~~~~~~~~~~~~~~~~~
game.cpp:51:9: note: in expansion of macro 'scan2'
51 | scan2(t,z)
| ^~~~~