foo.cc:1:1: error: 'var' does not name a type
1 | var i,j,m,n,k:longint;
| ^~~
foo.cc:2:2: error: found ':' in nested-name-specifier, expected '::'
2 | x:int64;
| ^
| ::
foo.cc:2:1: error: 'x' does not name a type
2 | x:int64;
| ^
foo.cc:3:1: error: 'begin' does not name a type
3 | begin
| ^~~~~
foo.cc:5:1: error: expected unqualified-id before 'if'
5 | if n=361 then writeln(83)
| ^~
foo.cc:8:1: error: expected unqualified-id before 'for'
8 | for i:=1 to k-1 do
| ^~~
foo.cc:11:1: error: 'j' does not name a type
11 | j:=j mod n;
| ^
foo.cc:12:1: error: 'end' does not name a type
12 | end;
| ^~~
foo.cc:13:1: error: expected unqualified-id before 'for'
13 | for i:=1 to j do
| ^~~
foo.cc:16:1: error: expected unqualified-id before 'if'
16 | if x>n-1 then x:=x mod n;
| ^~
foo.cc:17:1: error: 'end' does not name a type
17 | end;
| ^~~
foo.cc:18:8: error: expected constructor, destructor, or type conversion before '(' token
18 | writeln(x);end;
| ^
foo.cc:18:12: error: 'end' does not name a type
18 | writeln(x);end;
| ^~~
foo.cc:19:1: error: 'end' does not name a type
19 | end.
| ^~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务