foo.cc: In function ‘int main()’:
foo.cc:9:18: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
9 | for(int i=0;i<s.size();i++)
| ~^~~~~~~~~
foo.cc:28:18: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
28 | for(int i=0;i<=s.size();i++)
| ~^~~~~~~~~~
foo.cc:54:18: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
54 | for(int i=0;i<s.size();i++)
| ~^~~~~~~~~
foo.cc:56:9: warning: ‘maxi’ may be used uninitialized [-Wmaybe-uninitialized]
56 | if(i==maxi)
| ^~
foo.cc:7:27: note: ‘maxi’ was declared here
7 | int max=-1,min=100000,maxi,mini;
| ^~~~
foo.cc:64:9: warning: ‘mini’ may be used uninitialized [-Wmaybe-uninitialized]
64 | if(i==mini)
| ^~
foo.cc:7:32: note: ‘mini’ was declared here
7 | int max=-1,min=100000,maxi,mini;
| ^~~~