Vara: array[1..10000] of integer;i, k, n: integer;beginreadln(n);for i:=1 to n doread(a[i]);writeln;k:=0;for i:=2 to n doif a[i] > a[i-1] theninc(k);writeln(k);end.
Standard input is empty
Standard output is empty
./prog: attempt to read past end of Input (error #454 at 402c53)
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!