numbers.cpp: In function 'bool check_palindrome(std::string)':
numbers.cpp:9:18: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
9 | for(int i=0;i<s.size()/2;i++)
| ~^~~~~~~~~~~
numbers.cpp: In function 'bool check(std::string)':
numbers.cpp:18:18: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
18 | for(int i=0;i<s.size();i++)
| ~^~~~~~~~~
numbers.cpp:20:24: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
20 | for(int j=i+1;j<s.size();j++)
| ~^~~~~~~~~
numbers.cpp: In function 'void solve()':
numbers.cpp:39:14: warning: format '%ld' expects argument of type 'long int*', but argument 2 has type 'long long int*' [-Wformat=]
39 | scanf("%ld%ld",&a,&b);
| ~~^ ~~
| | |
| | long long int*
| long int*
| %lld
numbers.cpp:39:17: warning: format '%ld' expects argument of type 'long int*', but argument 3 has type 'long long int*' [-Wformat=]
39 | scanf("%ld%ld",&a,&b);
| ~~^ ~~
| | |
| | long long int*
| long int*
| %lld
numbers.cpp:49:15: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'long long int' [-Wformat=]
49 | printf("%ld",res);
| ~~^ ~~~
| | |
| | long long int
| long int
| %lld
numbers.cpp:39:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
39 | scanf("%ld%ld",&a,&b);
| ~~~~~^~~~~~~~~~~~~~~~