/in/foo.cc: In function 'int main()':
/in/foo.cc:31:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if(cha[i]!=cha[ii])
^~
/in/foo.cc:33:6: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
if(i==n-1&&cha[i]==cha[i])
^~
/in/foo.cc:33:23: warning: self-comparison always evaluates to true [-Wtautological-compare]
if(i==n-1&&cha[i]==cha[i])
~~~~~~^~~~~~~~
/in/foo.cc:39:16: warning: 'ii' may be used uninitialized in this function [-Wmaybe-uninitialized]
cout << shu[ii] << " " << shu[ii+1];
^