/ Vijos /

记录详情

Compile Error

foo.cc:3:9: error: too many decimal points in number
 a:array[0..1000,0..1000]of integer;
         ^~~~~~~
foo.cc:3:17: error: too many decimal points in number
 a:array[0..1000,0..1000]of integer;
                 ^~~~~~~
foo.cc:4:11: error: too many decimal points in number
 b,f:array[0..1000]of longint;
           ^~~~~~~
foo.cc:1:1: error: 'var' does not name a type; did you mean 'char'?
 var
 ^~~
 char
foo.cc:3:2: error: found ':' in nested-name-specifier, expected '::'
 a:array[0..1000,0..1000]of integer;
  ^
foo.cc:3:1: error: 'a' does not name a type
 a:array[0..1000,0..1000]of integer;
 ^
foo.cc:4:1: error: 'b' does not name a type
 b,f:array[0..1000]of longint;
 ^
foo.cc:6:1: error: 'function' does not name a type; did you mean 'union'?
 function round(x:integer):integer;
 ^~~~~~~~
 union
foo.cc:7:1: error: 'begin' does not name a type
 begin
 ^~~~~
foo.cc:9:1: error: 'end' does not name a type; did you mean 'enum'?
 end;
 ^~~
 enum
foo.cc:11:1: error: 'begin' does not name a type
 begin
 ^~~~~
foo.cc:13:1: error: expected unqualified-id before 'for'
 for i:=1 to n do
 ^~~
foo.cc:17:1: error: 'readln' does not name a type
 readln;
 ^~~~~~
foo.cc:18:1: error: 'end' does not name a type; did you mean 'enum'?
 end;
 ^~~
 enum
foo.cc:19:1: error: expected unqualified-id before 'for'
 for i:=1 to n do
 ^~~
foo.cc:21:1: error: 'f' does not name a type
 f[0]:=0;
 ^
foo.cc:22:1: error: expected unqualified-id before 'for'
 for i:=1 to m do
 ^~~
foo.cc:25:1: error: expected unqualified-id before 'for'
 for j:=1 to n do
 ^~~
foo.cc:28:1: error: expected unqualified-id before 'for'
 for k:=1 to p do
 ^~~
foo.cc:32:1: error: 'x' does not name a type
 x:=f[i-k]-b[j]+sum;
 ^
foo.cc:33:1: error: expected unqualified-id before 'if'
 if x>f[i] then f[i]:=x;
 ^~
foo.cc:34:1: error: 'end' does not name a type; did you mean 'enum'?
 end;
 ^~~
 enum
foo.cc:35:1: error: 'end' does not name a type; did you mean 'enum'?
 end;
 ^~~
 enum
foo.cc:36:1: error: 'end' does not name a type; did you mean 'enum'?
 end;
 ^~~
 enum
foo.cc:37:8: error: expected constructor, destructor, or type conversion before '(' token
 writeln(f[m]);
        ^
foo.cc:38:1: error: 'end' does not name a type; did you mean 'enum'?
 end.
 ^~~
 enum
正在同步测试数据,请稍后
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。

信息

递交者
类型
递交
题目
P1815 道路游戏
语言
C++
递交时间
2021-04-17 22:06:47
评测时间
2021-04-17 22:06:47
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes