Main.java:1: error: class, interface, or enum expected program ex1543; ^ Main.java:2: error: class, interface, or enum expected var n,m,t,w,i:integer; ^ Main.java:3: error: class, interface, or enum expected a,b:array[1..200] of integer; ^ Main.java:4: error: class, interface, or enum expected procedure gjc; ^ Main.java:5: error: class, interface, or enum expected var i:integer; ^ Main.java:6: error: class, interface, or enum expected begin ^ Main.java:9: error: class, interface, or enum expected t:=1; ^ Main.java:10: error: class, interface, or enum expected while a[t]<>0 do ^ Main.java:13: error: class, interface, or enum expected a[t]:=a[t] mod 1000; ^ Main.java:14: error: class, interface, or enum expected inc(t); ^ Main.java:15: error: class, interface, or enum expected end; ^ Main.java:16: error: class, interface, or enum expected dec(t); ^ Main.java:18: error: class, interface, or enum expected end; ^ Main.java:19: error: class, interface, or enum expected procedure gjj; ^ Main.java:20: error: class, interface, or enum expected var i:integer; ^ Main.java:21: error: class, interface, or enum expected begin ^ Main.java:23: error: class, interface, or enum expected w:=1; ^ Main.java:24: error: class, interface, or enum expected while b[w]<>0 do ^ Main.java:27: error: class, interface, or enum expected b[w]:=b[w] mod 1000; ^ Main.java:28: error: class, interface, or enum expected inc(w); ^ Main.java:29: error: class, interface, or enum expected end; ^ Main.java:30: error: class, interface, or enum expected dec(w); ^ Main.java:32: error: class, interface, or enum expected end; ^ Main.java:33: error: class, interface, or enum expected begin ^ Main.java:35: error: class, interface, or enum expected fillchar(a,sizeof(a),0); ^ Main.java:36: error: class, interface, or enum expected fillchar(b,sizeof(b),0); ^ Main.java:37: error: class, interface, or enum expected a[1]:=1;t:=1; w:=1; ^ Main.java:37: error: class, interface, or enum expected a[1]:=1;t:=1; w:=1; ^ Main.java:37: error: class, interface, or enum expected a[1]:=1;t:=1; w:=1; ^ Main.java:38: error: class, interface, or enum expected if n=1 then b[1]:=1; ^ Main.java:39: error: class, interface, or enum expected for i:=1 to m-1 do ^ Main.java:42: error: class, interface, or enum expected if i>=n-1 then gjj; ^ Main.java:44: error: class, interface, or enum expected end; ^ Main.java:45: error: class, interface, or enum expected write(b[w]) ; ^ Main.java:46: error: class, interface, or enum expected if w>1 then write(','); ^ Main.java:47: error: class, interface, or enum expected for i:=w-1 downto 1 do ^ Main.java:49: error: unclosed character literal if b[i]<10 then write('00'); ^ Main.java:49: error: unclosed character literal if b[i]<10 then write('00'); ^ Main.java:50: error: class, interface, or enum expected if (b[i]>=10) and (b[i]<100) then write('0'); ^ Main.java:51: error: class, interface, or enum expected write(b[i]); ^ Main.java:52: error: class, interface, or enum expected if i<>1 then write(',') ^ Main.java:55: error: class, interface, or enum expected end. ^ 42 errors