fork download
  1. program ideone;
  2. Var
  3. a: array[1..10000] of integer;
  4. i, k, n: integer;
  5. begin
  6. readln(n);
  7. for i:=1 to n do
  8. read(a[i]);
  9. writeln;
  10. k:=0;
  11. for i:=2 to n do
  12. if a[i] > a[i-1] then
  13. inc(k);
  14. writeln(k);
  15. end.
Runtime error #stdin #stdout #stderr 0s 9216KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
./prog: attempt to read past end of Input (error #454 at 402c53)