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:71:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(answ.size()<(1<<n)){
~~~~~~~~~~~^~~~~~~
lyuboyn.cpp:73:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(answ.size()==(1<<n))break;
~~~~~~~~~~~^~~~~~~~
lyuboyn.cpp:84:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(tim==answ.size()&&tim==hin&&X==10)break;
~~~^~~~~~~~~~~~~
lyuboyn.cpp:85:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(tim==answ.size()){X++;hin=tim;}
~~~^~~~~~~~~~~~~
lyuboyn.cpp:88:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(answ.size()!=(1<<n)){
~~~~~~~~~~~^~~~~~~~
lyuboyn.cpp:93:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<answ.size();i++){
~^~~~~~~~~~~~