chessboard.cpp: In function 'long long int p(long long int)':
chessboard.cpp:12:22: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
12 | if(debug) printf("f%d o%d e%d\n",f,o,e);//
| ~^ ~
| | |
| int long long int
| %lld
chessboard.cpp:12:26: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long long int' [-Wformat=]
12 | if(debug) printf("f%d o%d e%d\n",f,o,e);//
| ~^ ~
| | |
| int long long int
| %lld
chessboard.cpp:12:30: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long long int' [-Wformat=]
12 | if(debug) printf("f%d o%d e%d\n",f,o,e);//
| ~^ ~
| | |
| int long long int
| %lld
chessboard.cpp: In function 'int main()':
chessboard.cpp:28:24: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
28 | if(debug) printf("i=%d\n",i);//
| ~^ ~
| | |
| int long long int
| %lld
chessboard.cpp:30:21: warning: format '%d' expects argument of type 'int', but argument 2 has type 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wformat=]
30 | if(debug) printf("%d, g%d\n",factor.size(),g);//
| ~^ ~~~~~~~~~~~~~
| | |
| int std::vector<long long int>::size_type {aka long unsigned int}
| %ld
chessboard.cpp:30:26: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long long int' [-Wformat=]
30 | if(debug) printf("%d, g%d\n",factor.size(),g);//
| ~^ ~
| | |
| int long long int
| %lld
chessboard.cpp:35:16: 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]
35 | for(int i=0;i<factor.size();i++)
| ~^~~~~~~~~~~~~~
chessboard.cpp:54: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]
54 | for(int i=0;i<factor.size();i++)
| ~^~~~~~~~~~~~~~
chessboard.cpp:18:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
18 | scanf("%lld %lld",&N,&K);
| ~~~~~^~~~~~~~~~~~~~~~~~~
chessboard.cpp:33:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
33 | scanf("%lld %lld %lld %lld",&x1,&y1,&x2,&y2);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~