0_0_20147943_9519.cpp:29:10: error: empty character constant
if s='' then halt
^
0_0_20147943_9519.cpp:40:11: error: empty character constant
until s='';
^
0_0_20147943_9519.cpp:1:1: error: 'var' does not name a type
var s:string;
^
0_0_20147943_9519.cpp:2:5: error: 'i' does not name a type
i,j,max,f,m:longint;
^
0_0_20147943_9519.cpp:3:1: error: 'procedure' does not name a type
procedure change(m,n:longint);
^
0_0_20147943_9519.cpp:4:1: error: 'var' does not name a type
var t:longint;
^
0_0_20147943_9519.cpp:5:1: error: 'begin' does not name a type
begin
^
0_0_20147943_9519.cpp:6:8: error: 'm' does not name a type
t:=m;m:=n;n:=t;
^
0_0_20147943_9519.cpp:6:13: error: 'n' does not name a type
t:=m;m:=n;n:=t;
^
0_0_20147943_9519.cpp:7:1: error: 'end' does not name a type
end;
^
0_0_20147943_9519.cpp:9:1: error: 'function' does not name a type
function doit(a,b:longint):longint;
^
0_0_20147943_9519.cpp:10:1: error: 'var' does not name a type
var i,j,n,c:longint;
^
0_0_20147943_9519.cpp:11:1: error: 'begin' does not name a type
begin
^
0_0_20147943_9519.cpp:13:3: error: expected unqualified-id before 'for'
for i:=a to b do
^
0_0_20147943_9519.cpp:15:8: error: 'n' does not name a type
j:=i;n:=1;
^
0_0_20147943_9519.cpp:16:3: error: 'repeat' does not name a type
repeat
^
0_0_20147943_9519.cpp:19:8: error: expected constructor, destructor, or type conversion before '(' token
inc(n);
^
0_0_20147943_9519.cpp:20:3: error: 'until' does not name a type
until j=1;
^
0_0_20147943_9519.cpp:21:3: error: expected unqualified-id before 'if'
if n>c then c:=n;
^
0_0_20147943_9519.cpp:22:3: error: 'end' does not name a type
end;
^
0_0_20147943_9519.cpp:23:3: error: 'doit' does not name a type
doit:=c;
^
0_0_20147943_9519.cpp:24:1: error: 'end' does not name a type
end;
^
0_0_20147943_9519.cpp:26:1: error: 'begin' does not name a type
begin
^
0_0_20147943_9519.cpp:29:5: error: expected unqualified-id before 'if'
if s='' then halt
^
0_0_20147943_9519.cpp:33:10: error: expected constructor, destructor, or type conversion before '(' token
val(copy(s,1,m-1),i);
^
0_0_20147943_9519.cpp:34:10: error: expected constructor, destructor, or type conversion before '(' token
val(copy(s,m+1,length(s)),j);
^
0_0_20147943_9519.cpp:35:7: error: expected unqualified-id before 'if'
if i>j then begin change(i,j); f:=-1; end;
^
0_0_20147943_9519.cpp:35:38: error: 'f' does not name a type
if i>j then begin change(i,j); f:=-1; end;
^
0_0_20147943_9519.cpp:35:45: error: 'end' does not name a type
if i>j then begin change(i,j); f:=-1; end;
^
0_0_20147943_9519.cpp:36:7: error: 'max' does not name a type
max:=doit(i,j);
^
0_0_20147943_9519.cpp:37:7: error: expected unqualified-id before 'if'
if f=-1 then writeln(j,' ',i,' ',max)
^
0_0_20147943_9519.cpp:39:5: error: 'end' does not name a type
end;
^
0_0_20147943_9519.cpp:40:3: error: 'until' does not name a type
until s='';
^
0_0_20147943_9519.cpp:41:1: error: 'end' does not name a type
end.
^
|