Wrong Answer
/in/foo.c: In function 'main': /in/foo.c:16:5: warning: assuming signed overflow does not occur when assuming that (X + c) < X is always false [-Wstrict-overflow] if(ai>ai+1||ai>ai-1) ^~ /in/foo.c:19:10: warning: operation on 'sum' may be undefined [-Wsequence-point] sum=sum=m; ~~~^~~~~~