foo.cc: In function 'std::string bin(int, int)':
foo.cc:6:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
6 | for(long long i=1; a!=0; i++)s.push(a%2),a/=2;int l=s.size();
| ^~~
foo.cc:6:55: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
6 | for(long long i=1; a!=0; i++)s.push(a%2),a/=2;int l=s.size();
| ^~~
foo.cc: In function 'int main()':
foo.cc:16:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
16 | for(int i=0; i<s.size(); i++) s1+=bin(s[i],8);
| ~^~~~~~~~~
foo.cc:17:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
17 | for(int i=0; i<s1.size(); i++) {
| ~^~~~~~~~~~
foo.cc:21:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
21 | for(int i=0;i<s1.size();i++){
| ~^~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务