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 'int main()':
lyuboyn.cpp:70:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(answ.size()<(1<<n)){
~~~~~~~~~~~^~~~~~~
lyuboyn.cpp:72:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(answ.size()==(1<<n))break;
~~~~~~~~~~~^~~~~~~~
lyuboyn.cpp:81:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(tim==answ.size()&&tim==hin)break;
~~~^~~~~~~~~~~~~
lyuboyn.cpp:82:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(tim==answ.size()){x++;hin=tim;}
~~~^~~~~~~~~~~~~
lyuboyn.cpp:85:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(answ.size()!=(1<<n)){
~~~~~~~~~~~^~~~~~~~
lyuboyn.cpp:90:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<answ.size();i++){
~^~~~~~~~~~~~