/in/foo.cc:5:19: error: too many decimal points in number
key,s,l,r:array[0..maxn] of longint;
^~~~~~~
/in/foo.cc:6:11: error: too many decimal points in number
a:array[0..1000000] of longint;
^~~~~~~~~~
/in/foo.cc:96:42: warning: character constant too long for its type
if key[k]>max then writeln('Dui bu qi,Mei you.')
^~~~~~~~~~~~~~~~~~~~
/in/foo.cc:97:49: warning: character constant too long for its type
else if a[key[k]]<=0 then writeln('Mei you. Zhe ge ke yi you. Zhe ge zhen mei you!')
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.cc:98:28: warning: multi-character character constant [-Wmultichar]
else writeln('You.',key[k],' Yuan.');
^~~~~~
/in/foo.cc:98:42: warning: character constant too long for its type
else writeln('You.',key[k],' Yuan.');
^~~~~~~~
/in/foo.cc:2:3: error: 'maxn' does not name a type
maxn=100000;
^~~~
/in/foo.cc:3:1: error: 'var' does not name a type
var
^~~
/in/foo.cc:5:3: error: 'key' does not name a type
key,s,l,r:array[0..maxn] of longint;
^~~
/in/foo.cc:6:4: error: found ':' in nested-name-specifier, expected '::'
a:array[0..1000000] of longint;
^
/in/foo.cc:6:3: error: 'a' does not name a type
a:array[0..1000000] of longint;
^
/in/foo.cc:7:1: error: 'procedure' does not name a type
procedure main;
^~~~~~~~~
/in/foo.cc:8:3: error: 'var' does not name a type
var
^~~
/in/foo.cc:10:3: error: 'procedure' does not name a type
procedure right_rotate(var t:longint);
^~~~~~~~~
/in/foo.cc:11:5: error: 'begin' does not name a type
begin
^~~~~
/in/foo.cc:13:7: error: 'l' does not name a type
l[t]:=r[k];
^
/in/foo.cc:14:7: error: 'r' does not name a type
r[k]:=t;
^
/in/foo.cc:15:7: error: 's' does not name a type
s[k]:=s[t];
^
/in/foo.cc:16:7: error: 's' does not name a type
s[t]:=s[l[t]]+s[r[t]]+1;
^
/in/foo.cc:17:7: error: 't' does not name a type
t:=k;
^
/in/foo.cc:18:5: error: 'end' does not name a type
end;
^~~
/in/foo.cc:19:3: error: 'procedure' does not name a type
procedure left_rotate(var t:longint);
^~~~~~~~~
/in/foo.cc:20:5: error: 'begin' does not name a type
begin
^~~~~
/in/foo.cc:22:7: error: 'r' does not name a type
r[t]:=l[k];
^
/in/foo.cc:23:7: error: 'l' does not name a type
l[k]:=t;
^
/in/foo.cc:24:7: error: 's' does not name a type
s[k]:=s[t];
^
/in/foo.cc:25:7: error: 's' does not name a type
s[t]:=s[l[t]]+s[r[t]]+1;
^
/in/foo.cc:26:7: error: 't' does not name a type
t:=k;
^
/in/foo.cc:27:5: error: 'end' does not name a type
end;
^~~
/in/foo.cc:28:3: error: 'procedure' does not name a type
procedure maintain(var t:longint;flag:boolean);
^~~~~~~~~
/in/foo.cc:28:40: error: found ':' in nested-name-specifier, expected '::'
procedure maintain(var t:longint;flag:boolean);
^
/in/foo.cc:28:36: error: 'flag' does not name a type
procedure maintain(var t:longint;flag:boolean);
^~~~
/in/foo.cc:29:5: error: 'begin' does not name a type
begin
^~~~~
/in/foo.cc:37:27: error: expected constructor, destructor, or type conversion before '(' token
right_rotate(t);
^
/in/foo.cc:38:13: error: 'end' does not name a type
end
^~~
/in/foo.cc:47:26: error: expected constructor, destructor, or type conversion before '(' token
left_rotate(t);
^
/in/foo.cc:48:13: error: 'end' does not name a type
end
^~~
/in/foo.cc:50:15: error: expected constructor, destructor, or type conversion before '(' token
maintain(l[t],false);
^
/in/foo.cc:51:15: error: expected constructor, destructor, or type conversion before '(' token
maintain(r[t],true);
^
/in/foo.cc:52:15: error: expected constructor, destructor, or type conversion before '(' token
maintain(t,true);
^
/in/foo.cc:53:15: error: expected constructor, destructor, or type conversion before '(' token
maintain(t,false);
^
/in/foo.cc:54:5: error: 'end' does not name a type
end;
^~~
/in/foo.cc:55:3: error: 'procedure' does not name a type
procedure insert(var t,v:longint);
^~~~~~~~~
/in/foo.cc:56:5: error: 'begin' does not name a type
begin
^~~~~
/in/foo.cc:60:11: error: 't' does not name a type
t:=tt;
^
/in/foo.cc:61:11: error: 's' does not name a type
s[t]:=1;
^
/in/foo.cc:62:11: error: 'l' does not name a type
l[t]:=0;
^
/in/foo.cc:63:11: error: 'r' does not name a type
r[t]:=0;
^
/in/foo.cc:64:11: error: 'key' does not name a type
key[t]:=v;
^~~
/in/foo.cc:65:9: error: 'end' does not name a type
end
^~~
/in/foo.cc:69:11: error: expected unqualified-id before 'if'
if v<key[t] then insert(l[t],v)
^~
/in/foo.cc:71:19: error: expected constructor, destructor, or type conversion before '(' token
maintain(t,v>=key[t]);
^
/in/foo.cc:72:9: error: 'end' does not name a type
end;
^~~
/in/foo.cc:73:5: error: 'end' does not name a type
end;
^~~
/in/foo.cc:74:3: error: 'function' does not name a type
function select(var t:longint;k:longint):longint;
^~~~~~~~
/in/foo.cc:74:34: error: found ':' in nested-name-specifier, expected '::'
function select(var t:longint;k:longint):longint;
^
/in/foo.cc:74:33: error: 'k' does not name a type
function select(var t:longint;k:longint):longint;
^
/in/foo.cc:75:5: error: 'begin' does not name a type
begin
^~~~~
/in/foo.cc:80:5: error: 'end' does not name a type
end;
^~~
/in/foo.cc:81:3: error: 'begin' does not name a type
begin
^~~~~
/in/foo.cc:83:5: error: 't' does not name a type
t:=0; tt:=0;
^
/in/foo.cc:83:11: error: 'tt' does not name a type
t:=0; tt:=0;
^~
/in/foo.cc:84:9: error: expected constructor, destructor, or type conversion before '(' token
read(x);
^
/in/foo.cc:85:5: error: expected unqualified-id before 'while'
while x<>0 do
^~~~~
/in/foo.cc:88:9: error: expected unqualified-id before 'case'
case x of
^~~~
/in/foo.cc:91:18: error: expected constructor, destructor, or type conversion before '(' token
inc(a[y]);
^
/in/foo.cc:92:13: error: 'end' does not name a type
end;
^~~
/in/foo.cc:93:11: error: expected unqualified-id before numeric constant
2:dec(a[key[y]]);
^
/in/foo.cc:94:11: error: expected unqualified-id before numeric constant
3:begin
^
/in/foo.cc:96:15: error: expected unqualified-id before 'if'
if key[k]>max then writeln('Dui bu qi,Mei you.')
^~
/in/foo.cc:99:13: error: 'end' does not name a type
end;
^~~
/in/foo.cc:100:9: error: 'end' does not name a type
end;
^~~
/in/foo.cc:101:13: error: expected constructor, destructor, or type conversion before '(' token
read(x);
^
/in/foo.cc:102:7: error: 'end' does not name a type
end;
^~~
/in/foo.cc:103:3: error: 'end' does not name a type
end;
^~~
/in/foo.cc:104:1: error: 'begin' does not name a type
begin
^~~~~
/in/foo.cc:106:1: error: 'end' does not name a type
end.
^~~