B.cpp: In function 'bool simulate(std::__cxx11::string&)':
B.cpp:10:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i=0; i<S.size(); i++){
~^~~~~~~~~
B.cpp:13:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(i + 1 < S.size() && S[i + 1] == '1') s ++;
~~~~~~^~~~~~~~~~
B.cpp: In function 'bool tc(std::__cxx11::string&)':
B.cpp:25:27: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses]
if(!(S.size() & S.size() + 1)) return true;
~~~~~~~~~^~~