lyuboyn.cpp: In function 'int conv(std::string)':
lyuboyn.cpp:17:18: 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<s.size();i++){
| ~^~~~~~~~~
lyuboyn.cpp: In function 'std::string revconv(int, int)':
lyuboyn.cpp:27:19: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
27 | while(s.size()<n){
| ^
lyuboyn.cpp:26:9: warning: unused variable 'len' [-Wunused-variable]
26 | int len=log2(a);
| ^~~
lyuboyn.cpp: In function 'std::vector<int> hard(int)':
lyuboyn.cpp:51:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
51 | for(int i=0;i<vec[k-2].size();i++){
| ~^~~~~~~~~~~~~~~~
lyuboyn.cpp:60:23: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
60 | cur.pb(y+1+vec[k-2][i]^y);
lyuboyn.cpp:62:28: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
62 | else cur.pb(2*(y+1)+vec[k-2][i]^y);
lyuboyn.cpp: At global scope:
lyuboyn.cpp:98:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
98 | main(){
| ^~~~