/in/foo.cc: In function 'void clear(int)':
/in/foo.cc:15:130: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
{lmax[pos] = rmax[pos] = smax[pos] = sum[pos] = key[pos] = size[pos] = ch[pos][1] = ch[pos][0] = fa[pos] = turn[pos] = same[pos] = cha[pos] = 0;}
~~~~~~~~~~^~~~~~~~~~~~~~
/in/foo.cc: In function 'void rotate(int)':
/in/foo.cc:102:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if(posgra)ch[posgra][ch[posgra][1] == posfa] = pos;fa[pos] = posgra;
^~
/in/foo.cc:102:53: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
if(posgra)ch[posgra][ch[posgra][1] == posfa] = pos;fa[pos] = posgra;
^~
/in/foo.cc: In function 'void splay(int, int)':
/in/foo.cc:112:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if(!tar)root = pos;return;
^~
/in/foo.cc:112:21: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
if(!tar)root = pos;return;
^~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:130:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j = 0;j < strlen(read);j++)tmp += read[j];
~~^~~~~~~~~~~~~~