/in/foo.cc: In function 'void solve_string()':
/in/foo.cc:18:16: warning: value computed is not used [-Wunused-value]
for( i=0,j=0;i<int(s.size()),j<3;i++){
~^~~~~~~~~~~~~~
/in/foo.cc: In function 'void solve_arr()':
/in/foo.cc:35:11: warning: suggest parentheses around comparison in operand of '==' [-Wparentheses]
if(a[i]==a[i+1]==a[i+2]||a[i]>a[i+1]>a[i+2]){
~~~~^~~~~~~~
/in/foo.cc:35:33: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
if(a[i]==a[i+1]==a[i+2]||a[i]>a[i+1]>a[i+2]){
~~~~^~~~~~~