foo.cc:1:1: error: stray '##' in program
1 | ###Block code
| ^~
foo.cc:1:3: error: stray '#' in program
1 | ###Block code
| ^
foo.cc:3:28: error: too many decimal points in number
3 | num,color,t,tc,tn,tm:array[1..100000]of Int64;
| ^~~~~~~~~
foo.cc:1:4: error: 'Block' does not name a type
1 | ###Block code
| ^~~~~
foo.cc:3:1: error: 'num' does not name a type; did you mean 'enum'?
3 | num,color,t,tc,tn,tm:array[1..100000]of Int64;
| ^~~
| enum
foo.cc:5:1: error: 'begin' does not name a type
5 | begin
| ^~~~~
foo.cc:7:1: error: expected unqualified-id before 'for'
7 | for i:=1 to n do
| ^~~
foo.cc:9:1: error: expected unqualified-id before 'for'
9 | for i:=1 to n do
| ^~~
foo.cc:11:9: error: expected constructor, destructor, or type conversion before '(' token
11 | fillchar(t,sizeof(t),0);
| ^
foo.cc:12:9: error: expected constructor, destructor, or type conversion before '(' token
12 | fillchar(tc,sizeof(tc),0);
| ^
foo.cc:13:9: error: expected constructor, destructor, or type conversion before '(' token
13 | fillchar(tn,sizeof(tn),0);
| ^
foo.cc:14:9: error: expected constructor, destructor, or type conversion before '(' token
14 | fillchar(tm,sizeof(tm),0);
| ^
foo.cc:15:1: error: 'sum' does not name a type
15 | sum:=0;
| ^~~
foo.cc:16:1: error: 'i' does not name a type
16 | i:=1;
| ^
foo.cc:17:1: error: expected unqualified-id before 'while'
17 | while i<=n do
| ^~~~~
foo.cc:20:4: error: expected constructor, destructor, or type conversion before '(' token
20 | inc(tc[color[i]],i*num[i]);
| ^
foo.cc:21:4: error: expected constructor, destructor, or type conversion before '(' token
21 | inc(tn[color[i]],num[i]);
| ^
foo.cc:22:4: error: expected constructor, destructor, or type conversion before '(' token
22 | inc(tm[color[i]],i);
| ^
foo.cc:23:4: error: expected constructor, destructor, or type conversion before '(' token
23 | inc(i,2);
| ^
foo.cc:24:1: error: 'end' does not name a type
24 | end;
| ^~~
foo.cc:25:1: error: expected unqualified-id before 'for'
25 | for i:=1 to m do
| ^~~
foo.cc:28:9: error: expected constructor, destructor, or type conversion before '(' token
28 | fillchar(t,sizeof(t),0);
| ^
foo.cc:29:9: error: expected constructor, destructor, or type conversion before '(' token
29 | fillchar(tc,sizeof(tc),0);
| ^
foo.cc:30:9: error: expected constructor, destructor, or type conversion before '(' token
30 | fillchar(tn,sizeof(tn),0);
| ^
foo.cc:31:9: error: expected constructor, destructor, or type conversion before '(' token
31 | fillchar(tm,sizeof(tm),0);
| ^
foo.cc:32:1: error: 'i' does not name a type
32 | i:=2;
| ^
foo.cc:33:1: error: expected unqualified-id before 'while'
33 | while i<=n do
| ^~~~~
foo.cc:36:4: error: expected constructor, destructor, or type conversion before '(' token
36 | inc(tc[color[i]],i*num[i]);
| ^
foo.cc:37:4: error: expected constructor, destructor, or type conversion before '(' token
37 | inc(tn[color[i]],num[i]);
| ^
foo.cc:38:4: error: expected constructor, destructor, or type conversion before '(' token
38 | inc(tm[color[i]],i);
| ^
foo.cc:39:4: error: expected constructor, destructor, or type conversion before '(' token
39 | inc(i,2);
| ^
foo.cc:40:1: error: 'end' does not name a type
40 | end;
| ^~~
foo.cc:41:1: error: expected unqualified-id before 'for'
41 | for i:=1 to m do
| ^~~
foo.cc:44:8: error: expected constructor, destructor, or type conversion before '(' token
44 | writeln(sum);
| ^
foo.cc:45:1: error: 'end' does not name a type
45 | end.
| ^~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务