/ Vijos /

记录详情

Compile Error

foo.cc:1:13: error: too many decimal points in number
    1 | var a:array[1..1000]of longint;
      |             ^~~~~~~
foo.cc:1:1: error: 'var' does not name a type
    1 | var a:array[1..1000]of longint;
      | ^~~
foo.cc:3:1: error: 'n' does not name a type
    3 | n,i,j,k,sum:longint;
      | ^
foo.cc:5:1: error: 'begin' does not name a type
    5 | begin
      | ^~~~~
foo.cc:9:1: error: expected unqualified-id before 'for'
    9 | for i:= 1 to n do
      | ^~~
foo.cc:13:1: error: expected unqualified-id before 'for'
   13 | for i:=n-1 downto 1 do
      | ^~~
foo.cc:18:1: error: 'sum' does not name a type
   18 | sum:=0;
      | ^~~
foo.cc:20:1: error: expected unqualified-id before 'for'
   20 | for i:=1 to n do
      | ^~~
foo.cc:24:8: error: expected constructor, destructor, or type conversion before '(' token
   24 | writeln(sum);
      |        ^
foo.cc:26:1: error: 'end' does not name a type
   26 | end.
      | ^~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1220 拉面秘籍
语言
C++
递交时间
2023-06-06 17:10:58
评测时间
2023-06-06 17:10:58
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes