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:15: warning: unused variable 'j' [-Wunused-variable]
36 | int n,m,i,j,k;
| ^
game.cpp:36:17: warning: unused variable 'k' [-Wunused-variable]
36 | int n,m,i,j,k;
| ^
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:39:9: note: in expansion of macro 'scan1'
39 | 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:50:9: note: in expansion of macro 'scan2'
50 | scan2(t,z)
| ^~~~~