lyuboyn.cpp:7:2: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
7 | main (){
| ^~~~
lyuboyn.cpp: In function 'int main()':
lyuboyn.cpp:17:21: 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:33:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
33 | if(p == v.size()){
| ~~^~~~~~~~~~~
lyuboyn.cpp:36:13: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
36 | if(i&1^1){
| ~^~
lyuboyn.cpp:50:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
50 | for(int i = 0; i < ans.size();++i){
| ~~^~~~~~~~~~~~
lyuboyn.cpp:60:29: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
60 | for(int k =0; k < n-s.size(); ++k)s+='0';
| ~~^~~~~~~~~~~~