lyuboyn.cpp: In function 'int tod(std::vector<int>)':
lyuboyn.cpp:13:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<a.size();i++){
~^~~~~~~~~
lyuboyn.cpp: In function 'int tod(std::__cxx11::string)':
lyuboyn.cpp:22:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<s.size();i++){
~^~~~~~~~~
lyuboyn.cpp: In function 'std::__cxx11::string tobin(int, int)':
lyuboyn.cpp:32:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(res.size()<h)res+="0";
~~~~~~~~~~^~
lyuboyn.cpp:40:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(res.size()<h)res+="0";
~~~~~~~~~~^~
lyuboyn.cpp: In function 'void print(std::vector<int>)':
lyuboyn.cpp:46:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<a.size();i++)cout<<a[i]<<' ';
~^~~~~~~~~
lyuboyn.cpp: In function 'int main()':
lyuboyn.cpp:72:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(tv.size()<(1<<n)){
~~~~~~~~~^~~~~~~
lyuboyn.cpp:79:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(tv.size()==(1<<n)){ok=true;break;}
~~~~~~~~~^~~~~~~~
lyuboyn.cpp:86:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(tmp==tv.size()){
~~~^~~~~~~~~~~