/in/foo.cc: In function 'int main()':
/in/foo.cc:24:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(i<s.length()-1)
~^~~~~~~~~~~~~
/in/foo.cc:39:13: warning: array subscript has type 'char' [-Wchar-subscripts]
if(num[c])
^
/in/foo.cc:44:10: warning: array subscript has type 'char' [-Wchar-subscripts]
num[c]=1;
^
/in/foo.cc:46:21: warning: array subscript has type 'char' [-Wchar-subscripts]
if(s1==s2){num[c]=2;continue;}
^
/in/foo.cc:49:26: warning: array subscript has type 'char' [-Wchar-subscripts]
num[c]=2;
^
/in/foo.cc:58:38: warning: array subscript has type 'char' [-Wchar-subscripts]
if(f){cnt++;num[c]=2;continue;}
^
/in/foo.cc:62:22: warning: array subscript has type 'char' [-Wchar-subscripts]
num[c]=2;
^
/in/foo.cc:77:27: warning: array subscript has type 'char' [-Wchar-subscripts]
num[cc]=0;
^
/in/foo.cc:80:26: warning: array subscript has type 'char' [-Wchar-subscripts]
if(num[cc]==1)t2--;
^
/in/foo.cc:81:23: warning: array subscript has type 'char' [-Wchar-subscripts]
num[cc]=0;
^
/in/foo.cc:33:11: warning: unused variable 'xxxx' [-Wunused-variable]
int xxxx=d.size();
^~~~
/in/foo.cc:16:15: warning: unused variable 'f1' [-Wunused-variable]
bool flag=0,f1=0,f=0;
^~