fork download
  1.  
  2. uses crt;
  3.  
  4. var
  5.  
  6. gelas_kaca, gelas_plastik, i : integer ;
  7.  
  8. begin
  9.  
  10. clrscr;
  11.  
  12. gelas_kaca:=1; // Jumlah Gelas Kaca (untuk no 40)
  13.  
  14. gelas_plastic:=2;
  15.  
  16. for i:=1 to 10 do
  17.  
  18. begin
  19.  
  20. gelas_plastik:=gelas_kaca*2; // Fungsi 1 (untuk soal no 39)
  21.  
  22. gelas_kaca:=gelasplastik+1;
  23.  
  24. end;
  25.  
  26. writeln(gelas_kaca + gelas_plastik);
  27.  
  28. readln();
  29.  
  30. end.
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Free Pascal Compiler version 2.6.4+dfsg-6 [2015/05/31] for i386
Copyright (c) 1993-2014 by Florian Klaempfl and others
Target OS: Linux for i386
Compiling prog.pas
prog.pas(14,15) Error: Identifier not found "gelas_plastic"
prog.pas(22,27) Error: Identifier not found "gelasplastik"
prog.pas(30,4) Fatal: There were 2 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