/in/foo.cc: In function 'bool change()':
/in/foo.cc:37:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
/in/foo.cc: In function 'int getResult()':
/in/foo.cc:40:17: warning: variable 'n' set but not used [-Wunused-but-set-variable]
int result = 0,n;
^
/in/foo.cc: In function 'int main()':
/in/foo.cc:72:64: warning: format '%d' expects argument of type 'int', but argument 2 has type 'std::__cxx11::basic_string<char>::size_type {aka long unsigned int}' [-Wformat=]
printf("%d %d %.1f",str.size()*8,result,str.size()*8.0/result);
^