/in/foo.cc: In function 'int main()':
/in/foo.cc:22:30: warning: comparison of constant ''X'' with boolean expression is always false [-Wbool-compare]
if(a[i][1]=a[i][2]==a[i][3]=='X')
~~~~~~~~~~~~~~~~^~~~~
/in/foo.cc:22:21: warning: suggest parentheses around comparison in operand of '==' [-Wparentheses]
if(a[i][1]=a[i][2]==a[i][3]=='X')
~~~~~~~^~~~~~~~~
/in/foo.cc:22:35: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
if(a[i][1]=a[i][2]==a[i][3]=='X')
^
/in/foo.cc:27:30: warning: comparison of constant ''O'' with boolean expression is always false [-Wbool-compare]
if(a[i][1]=a[i][2]==a[i][3]=='O')
~~~~~~~~~~~~~~~~^~~~~
/in/foo.cc:27:21: warning: suggest parentheses around comparison in operand of '==' [-Wparentheses]
if(a[i][1]=a[i][2]==a[i][3]=='O')
~~~~~~~^~~~~~~~~
/in/foo.cc:27:35: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
if(a[i][1]=a[i][2]==a[i][3]=='O')
^
/in/foo.cc:36:13: warning: suggest parentheses around comparison in operand of '==' [-Wparentheses]
if(a[1][i]==a[2][i]==a[3][i]=='X')
~~~~~~~^~~~~~~~~
/in/foo.cc:36:31: warning: comparison of constant ''X'' with boolean expression is always false [-Wbool-compare]
if(a[1][i]==a[2][i]==a[3][i]=='X')
~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
/in/foo.cc:36:22: warning: suggest parentheses around comparison in operand of '==' [-Wparentheses]
if(a[1][i]==a[2][i]==a[3][i]=='X')
~~~~~~~~~~~~~~~~^~~~~~~~~
/in/foo.cc:41:13: warning: suggest parentheses around comparison in operand of '==' [-Wparentheses]
if(a[1][i]==a[2][i]==a[3][i]=='O')
~~~~~~~^~~~~~~~~
/in/foo.cc:41:31: warning: comparison of constant ''O'' with boolean expression is always false [-Wbool-compare]
if(a[1][i]==a[2][i]==a[3][i]=='O')
~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
/in/foo.cc:41:22: warning: suggest parentheses around comparison in operand of '==' [-Wparentheses]
if(a[1][i]==a[2][i]==a[3][i]=='O')
~~~~~~~~~~~~~~~~^~~~~~~~~