fork download
  1. var
  2. a,b:array[1..1000] of integer;
  3. pom,i,j,t:INTEGER;
  4. BEGIN
  5. readln(t);
  6. for i:=1 to to do
  7. readln(a[i],b[i]);
  8. for i:=1 to t do
  9. begin
  10. pom:=a[i];
  11. for j:=1 to b[i]-1 do
  12. a[i]:=a[i]+(a[i]*pom);
  13. writeln(a[i]);
  14. end;
  15. END.
  16.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
3
2 4
1 5
3 2
compilation info
Free Pascal Compiler version 2.2.0 [2009/11/16] for i386
Copyright (c) 1993-2007 by Florian Klaempfl
Target OS: Linux for i386
Compiling prog.pas
prog.pas(6,14) Error: Illegal expression
prog.pas(16) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
Error: /usr/bin/ppc386 returned an error exitcode (normal if you did not specify a source file to be compiled)
stdout
Standard output is empty