/ Vijos /

记录详情

Compile Error

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)提供评测服务

信息

递交者
类型
递交
题目
P1841 转圈游戏
语言
C++
递交时间
2021-12-16 21:09:55
评测时间
2021-12-16 22:01:23
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes