Compiler output
prog.cpp: In function 'int main()':
prog.cpp:18:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for( i = 0 ; i < s.size() ; i++ )
^
prog.cpp:24:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while( i < s.size() && s[ i ] == 48 ) i++;
^
prog.cpp:25:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(i==s.size()) cout<<0;
^
prog.cpp:26:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(;i<s.size();i++)
^