0_0_13253612_26291.cpp:2:19: error: too many decimal points in number
var num,idx:array[0..200010] of longint;
^
0_0_13253612_26291.cpp:1:1: error: 'program' does not name a type
program shu;
^
0_0_13253612_26291.cpp:2:1: error: 'var' does not name a type
var num,idx:array[0..200010] of longint;
^
0_0_13253612_26291.cpp:3:5: error: 'i' does not name a type
i,n,m,a,b:longint;
^
0_0_13253612_26291.cpp:4:5: error: 'c' does not name a type
c:char;
^
0_0_13253612_26291.cpp:5:1: error: 'function' does not name a type
function max(a,b:longint):longint;
^
0_0_13253612_26291.cpp:6:3: error: 'begin' does not name a type
begin
^
0_0_13253612_26291.cpp:9:3: error: 'end' does not name a type
end;
^
0_0_13253612_26291.cpp:10:1: error: 'function' does not name a type
function lowbit(a:longint):longint;
^
0_0_13253612_26291.cpp:11:3: error: 'begin' does not name a type
begin
^
0_0_13253612_26291.cpp:13:3: error: 'end' does not name a type
end;
^
0_0_13253612_26291.cpp:14:1: error: 'procedure' does not name a type
procedure init;
^
0_0_13253612_26291.cpp:15:3: error: 'var' does not name a type
var i,j:longint;
^
0_0_13253612_26291.cpp:16:3: error: 'begin' does not name a type
begin
^
0_0_13253612_26291.cpp:20:9: error: 'j' does not name a type
j:=1;
^
0_0_13253612_26291.cpp:21:9: error: expected unqualified-id before 'while'
while j<lowbit(i) do
^
0_0_13253612_26291.cpp:24:13: error: 'j' does not name a type
j:=j shl 1;
^
0_0_13253612_26291.cpp:25:11: error: 'end' does not name a type
end;
^
0_0_13253612_26291.cpp:26:7: error: 'end' does not name a type
end;
^
0_0_13253612_26291.cpp:27:3: error: 'end' does not name a type
end;
^
0_0_13253612_26291.cpp:28:1: error: 'function' does not name a type
function query(l,r:longint):longint;
^
0_0_13253612_26291.cpp:29:3: error: 'var' does not name a type
var ans:longint;
^
0_0_13253612_26291.cpp:30:3: error: 'begin' does not name a type
begin
^
0_0_13253612_26291.cpp:32:5: error: expected unqualified-id before 'while'
while true do
^
0_0_13253612_26291.cpp:35:9: error: expected unqualified-id before 'if'
if l=r then begin query:=ans;break;end;
^
0_0_13253612_26291.cpp:35:38: error: expected unqualified-id before 'break'
if l=r then begin query:=ans;break;end;
^
0_0_13253612_26291.cpp:35:44: error: 'end' does not name a type
if l=r then begin query:=ans;break;end;
^
0_0_13253612_26291.cpp:36:9: error: 'r' does not name a type
r:=r-1;
^
0_0_13253612_26291.cpp:37:9: error: expected unqualified-id before 'while'
while r-l>=lowbit(r) do
^
0_0_13253612_26291.cpp:40:13: error: 'r' does not name a type
r:=r-lowbit(r);
^
0_0_13253612_26291.cpp:41:11: error: 'end' does not name a type
end;
^
0_0_13253612_26291.cpp:42:7: error: 'end' does not name a type
end;
^
0_0_13253612_26291.cpp:43:3: error: 'end' does not name a type
end;
^
0_0_13253612_26291.cpp:44:1: error: 'procedure' does not name a type
procedure modify(p,v:longint);
^
0_0_13253612_26291.cpp:45:3: error: 'var' does not name a type
var i,j:longint;
^
0_0_13253612_26291.cpp:46:3: error: 'begin' does not name a type
begin
^
0_0_13253612_26291.cpp:48:5: error: 'i' does not name a type
i:=p;
^
0_0_13253612_26291.cpp:49:5: error: expected unqualified-id before 'while'
while i<=n do
^
0_0_13253612_26291.cpp:52:9: error: 'j' does not name a type
j:=1;
^
0_0_13253612_26291.cpp:53:9: error: expected unqualified-id before 'while'
while j<lowbit(i) do
^
0_0_13253612_26291.cpp:56:13: error: 'j' does not name a type
j:=j shl 1;
^
0_0_13253612_26291.cpp:57:11: error: 'end' does not name a type
end;
^
0_0_13253612_26291.cpp:58:9: error: 'i' does not name a type
i:=i+lowbit(i);
^
0_0_13253612_26291.cpp:59:7: error: 'end' does not name a type
end;
^
0_0_13253612_26291.cpp:60:3: error: 'end' does not name a type
end;
^
0_0_13253612_26291.cpp:61:1: error: 'begin' does not name a type
begin
^
0_0_13253612_26291.cpp:65:7: error: expected unqualified-id before 'for'
for i:=1 to n do read(num[i]);
^
0_0_13253612_26291.cpp:66:7: error: 'readln' does not name a type
readln;
^
0_0_13253612_26291.cpp:67:7: error: 'init' does not name a type
init;
^
0_0_13253612_26291.cpp:68:7: error: expected unqualified-id before 'for'
for i:=1 to m do
^
0_0_13253612_26291.cpp:71:17: error: expected constructor, destructor, or type conversion before '(' token
readln(a,b);
^
0_0_13253612_26291.cpp:72:11: error: expected unqualified-id before 'if'
if c='Q' then
^
0_0_13253612_26291.cpp:76:9: error: 'end' does not name a type
end;
^
0_0_13253612_26291.cpp:77:5: error: 'end' does not name a type
end;
^
0_0_13253612_26291.cpp:78:1: error: 'end' does not name a type
end.
^
|