0_0_25312024_4252.cpp:3:12: error: too many decimal points in number
arr=array[1..100000]of longint;
^
0_0_25312024_4252.cpp:1:1: error: 'program' does not name a type
program hu;
^
0_0_25312024_4252.cpp:2:1: error: 'type' does not name a type
type
^
0_0_25312024_4252.cpp:4:1: error: 'var' does not name a type
var
^
0_0_25312024_4252.cpp:6:2: error: 'c' does not name a type
c,d:arr;
^
0_0_25312024_4252.cpp:7:1: error: 'function' does not name a type
function lowbit(t:longint):longint;
^
0_0_25312024_4252.cpp:8:1: error: 'begin' does not name a type
begin
^
0_0_25312024_4252.cpp:10:1: error: 'end' does not name a type
end;
^
0_0_25312024_4252.cpp:11:1: error: 'procedure' does not name a type
procedure insert(pos:longint;var c:arr);
^
0_0_25312024_4252.cpp:11:30: error: 'var' does not name a type
procedure insert(pos:longint;var c:arr);
^
0_0_25312024_4252.cpp:12:1: error: 'begin' does not name a type
begin
^
0_0_25312024_4252.cpp:16:5: error: 'pos' does not name a type
pos:=pos+lowbit(pos);
^
0_0_25312024_4252.cpp:17:4: error: 'end' does not name a type
end;
^
0_0_25312024_4252.cpp:18:1: error: 'end' does not name a type
end;
^
0_0_25312024_4252.cpp:19:1: error: 'function' does not name a type
function getsum(pos:longint;c:arr):longint;
^
0_0_25312024_4252.cpp:19:30: error: found ':' in nested-name-specifier, expected '::'
function getsum(pos:longint;c:arr):longint;
^
0_0_25312024_4252.cpp:19:29: error: 'c' does not name a type
function getsum(pos:longint;c:arr):longint;
^
0_0_25312024_4252.cpp:20:1: error: 'var' does not name a type
var
^
0_0_25312024_4252.cpp:22:1: error: 'begin' does not name a type
begin
^
0_0_25312024_4252.cpp:24:2: error: expected unqualified-id before 'while'
while pos>0 do
^
0_0_25312024_4252.cpp:27:4: error: 'pos' does not name a type
pos:=pos-lowbit(pos);
^
0_0_25312024_4252.cpp:28:3: error: 'end' does not name a type
end;
^
0_0_25312024_4252.cpp:29:6: error: expected constructor, destructor, or type conversion before '(' token
exit(sum);
^
0_0_25312024_4252.cpp:30:1: error: 'end' does not name a type
end;
^
0_0_25312024_4252.cpp:31:1: error: 'begin' does not name a type
begin
^
0_0_25312024_4252.cpp:33:2: error: expected unqualified-id before 'while'
while t<>0 do
^
0_0_25312024_4252.cpp:36:13: error: expected constructor, destructor, or type conversion before '(' token
fillchar(d,sizeof(d),0);
^
0_0_25312024_4252.cpp:37:11: error: expected constructor, destructor, or type conversion before '(' token
readln(n,m,k,q);
^
0_0_25312024_4252.cpp:38:5: error: expected unqualified-id before 'for'
for i:=1 to k do
^
0_0_25312024_4252.cpp:41:14: error: expected constructor, destructor, or type conversion before '(' token
insert(x,c);
^
0_0_25312024_4252.cpp:42:14: error: expected constructor, destructor, or type conversion before '(' token
insert(y,d);
^
0_0_25312024_4252.cpp:43:7: error: 'end' does not name a type
end;
^
0_0_25312024_4252.cpp:44:5: error: expected unqualified-id before 'for'
for i:=1 to q do
^
0_0_25312024_4252.cpp:47:8: error: expected unqualified-id before 'if'
if x1>x2 then
^
0_0_25312024_4252.cpp:50:11: error: 'x2' does not name a type
x2:=x1-x2;
^
0_0_25312024_4252.cpp:51:11: error: 'x1' does not name a type
x1:=x1-x2;
^
0_0_25312024_4252.cpp:52:10: error: 'end' does not name a type
end;
^
0_0_25312024_4252.cpp:53:8: error: expected unqualified-id before 'if'
if y1>y2 then
^
0_0_25312024_4252.cpp:56:11: error: 'y2' does not name a type
y2:=y1-y2;
^
0_0_25312024_4252.cpp:57:11: error: 'y1' does not name a type
y1:=y1-y2;
^
0_0_25312024_4252.cpp:58:10: error: 'end' does not name a type
end;
^
0_0_25312024_4252.cpp:59:8: error: expected unqualified-id before 'if'
if (getsum(x2,c)-getsum(x1-1,c)=x2-x1) and
^
0_0_25312024_4252.cpp:64:7: error: 'end' does not name a type
end;
^
0_0_25312024_4252.cpp:65:8: error: expected constructor, destructor, or type conversion before '(' token
dec(t);
^
0_0_25312024_4252.cpp:66:4: error: 'end' does not name a type
end;
^
0_0_25312024_4252.cpp:67:1: error: 'end' does not name a type
end.
^
|