Wrong Answer
/in/foo.cc: In function 'int main()':
/in/foo.cc:81:7: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
       if(aha[i]==aha[i+1])
       ^~
/in/foo.cc:83:4: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
    if((aha[i]==aha[i+1])&&(aha[i+1]==aha[i+2]+1))
    ^~