chessboard.cpp: In function 'long long int fun(long long int)':
chessboard.cpp:34:19: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
34 | for (j=0;j<v[i].size();++j){
| ~^~~~~~~~~~~~
chessboard.cpp:36:26: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
36 | if (y%2 == 0 && c%2 == 1 || y%2 == 1 && c%2 == 0 )res--;
| ~~~~~~~~~^~~~~~~~~~~
chessboard.cpp:19:13: warning: unused variable 'ans' [-Wunused-variable]
19 | int i,j,ans=0,cnt=0,res=0,c=1;
| ^~~
chessboard.cpp:19:19: warning: unused variable 'cnt' [-Wunused-variable]
19 | int i,j,ans=0,cnt=0,res=0,c=1;
| ^~~
chessboard.cpp: In function 'long long int fun1(long long int)':
chessboard.cpp:60:19: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
60 | for (j=0;j<v[i].size();++j){
| ~^~~~~~~~~~~~
chessboard.cpp:62:26: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
62 | if (y%2 == 0 && c%2 == 1 || y%2 == 1 && c%2 == 0 )res--;
| ~~~~~~~~~^~~~~~~~~~~
chessboard.cpp:45:13: warning: unused variable 'ans' [-Wunused-variable]
45 | int i,j,ans=0,cnt=0,res=0,c=0;
| ^~~
chessboard.cpp:45:19: warning: unused variable 'cnt' [-Wunused-variable]
45 | int i,j,ans=0,cnt=0,res=0,c=0;
| ^~~
chessboard.cpp: At global scope:
chessboard.cpp:72:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
72 | main(){
| ^
chessboard.cpp: In function 'int main()':
chessboard.cpp:91:15: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
91 | for (i=0;i<pr.size();++i){
| ~^~~~~~~~~~
chessboard.cpp:73:13: warning: unused variable 'j' [-Wunused-variable]
73 | int k,i,j;
| ^
chessboard.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);
| ~~~~~^~~~~~~~~~~~~~~~~~~~
chessboard.cpp:75:5: note: in expansion of macro 'scan2'
75 | scan2(n,k)
| ^~~~~
chessboard.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);
| ~~~~~^~~~~~~~~~~~~~~~~~~~
chessboard.cpp:79:9: note: in expansion of macro 'scan2'
79 | scan2(x1,y1)
| ^~~~~
chessboard.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);
| ~~~~~^~~~~~~~~~~~~~~~~~~~
chessboard.cpp:80:9: note: in expansion of macro 'scan2'
80 | scan2(x2,y2)
| ^~~~~