lyuboyn.cpp:18:2: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
18 | main (){
| ^~~~
lyuboyn.cpp: In function 'int main()':
lyuboyn.cpp:28:21: 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){
| ~^~~~~~~~~~
lyuboyn.cpp:34:18: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
34 | if(ans.size()< (1<<n)){cout<<-1;return 0;}
| ~~~~~~~~~~^~~~~~~~
lyuboyn.cpp:36:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
36 | for(int i = 0; i < ans.size();++i){
| ~~^~~~~~~~~~~~
lyuboyn.cpp:37:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
37 | for(int j = n-1; ~j; --j)cout << (ans[i]>>j&1);cout<<endl;
| ^~~
lyuboyn.cpp:37:56: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
37 | for(int j = n-1; ~j; --j)cout << (ans[i]>>j&1);cout<<endl;
| ^~~~