foo.cc:9:10: error: too many decimal points in number
aa:array[0..256]of longint;
^~~~~~
foo.cc:3:1: error: 'var' does not name a type; did you mean 'char'?
var n,m,a,b,c,d,i,t,l:longint;
^~~
char
foo.cc:5:1: error: 'ch' does not name a type; did you mean 'char'?
ch:char;
^~
char
foo.cc:7:1: error: 's' does not name a type
s:double;
^
foo.cc:9:3: error: found ':' in nested-name-specifier, expected '::'
aa:array[0..256]of longint;
^
foo.cc:9:1: error: 'aa' does not name a type
aa:array[0..256]of longint;
^~
foo.cc:11:1: error: 'begin' does not name a type
begin
^~~~~
foo.cc:15:1: error: 'm' does not name a type
m:=round(ln(n)/ln(2));
^
foo.cc:17:1: error: 's' does not name a type
s:=100;
^
foo.cc:19:1: error: expected unqualified-id before 'for'
for i:=1 to m do
^~~
foo.cc:25:1: error: 's' does not name a type
s:=s*a/100*b/100*c/100;
^
foo.cc:27:1: error: 'end' does not name a type; did you mean 'enum'?
end;
^~~
enum
foo.cc:29:8: error: expected constructor, destructor, or type conversion before '(' token
writeln(s:0:2);
^
foo.cc:31:1: error: 't' does not name a type
t:=0;
^
foo.cc:33:1: error: expected unqualified-id before 'for'
for i:=1 to m do
^~~
foo.cc:39:7: error: expected constructor, destructor, or type conversion before '(' token
readln(a,b,c,d);
^
foo.cc:41:1: error: 's' does not name a type
s:=s*a/100*b/100*c/100*d+d;
^
foo.cc:43:1: error: 't' does not name a type
t:=t+trunc(s);
^
foo.cc:45:1: error: 'end' does not name a type; did you mean 'enum'?
end;
^~~
enum
foo.cc:47:7: error: expected constructor, destructor, or type conversion before '(' token
readln(l);
^
foo.cc:49:1: error: expected unqualified-id before 'for'
for i:=1 to l do
^~~
foo.cc:55:1: error: 'aa' does not name a type
aa[i]:=ord(ch)-48;
^~
foo.cc:57:1: error: 'end' does not name a type; did you mean 'enum'?
end;
^~~
enum
foo.cc:59:1: error: 'aa' does not name a type
aa[l]:=aa[l]+t;
^~
foo.cc:61:1: error: expected unqualified-id before 'for'
for i:=l downto 1 do
^~~
foo.cc:67:1: error: expected unqualified-id before 'for'
for i:=1 to l do write(aa[i]);
^~~
foo.cc:69:1: error: 'writeln' does not name a type
writeln;
^~~~~~~
foo.cc:71:1: error: 'end' does not name a type; did you mean 'enum'?
end.
^~~
enum
[Hydro](https://hydro.ac)提供评测服务