/ Vijos /

记录详情

Compile Error

foo.cc:1:16: error: too many decimal points in number
 var a,b:array [1..1000] of longint;
                ^~~~~~~
foo.cc:1:1: error: 'var' does not name a type; did you mean 'char'?
 var a,b:array [1..1000] of longint;
 ^~~
 char
foo.cc:3:1: error: 'm' does not name a type
 m,n,i,j,c:longint;
 ^
foo.cc:5:1: error: 'begin' does not name a type
 begin
 ^~~~~
foo.cc:9:1: error: expected unqualified-id before 'for'
 for i:=1 to n do
 ^~~
foo.cc:13:1: error: 'c' does not name a type
 c:=a[n];
 ^
foo.cc:15:1: error: expected unqualified-id before 'for'
 for i:=n-1 downto 1 do
 ^~~
foo.cc:23:1: error: 'b' does not name a type
 b[i]:=a[i];
 ^
foo.cc:25:1: error: 'end' does not name a type; did you mean 'enum'?
 end;
 ^~~
 enum
foo.cc:27:1: error: expected unqualified-id before 'for'
 for i:=1 to n-1 do
 ^~~
foo.cc:31:8: error: expected constructor, destructor, or type conversion before '(' token
 writeln(m+c);
        ^
foo.cc:33:1: error: 'end' does not name a type; did you mean 'enum'?
 end.
 ^~~
 enum
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1220 拉面秘籍
语言
C++
递交时间
2021-08-11 19:57:31
评测时间
2021-08-11 19:57:31
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes