/ Vijos /

记录详情

Compile Error

/in/foo.cc:1:13: error: too many decimal points in number
 var a:array[1..1000]of longint;
             ^~~~~~~
/in/foo.cc:1:1: error: 'var' does not name a type
 var a:array[1..1000]of longint;
 ^~~
/in/foo.cc:3:1: error: 'n' does not name a type
 n,i,j,k,sum:longint;
 ^
/in/foo.cc:5:1: error: 'begin' does not name a type
 begin
 ^~~~~
/in/foo.cc:9:1: error: expected unqualified-id before 'for'
 for i:= 1 to n do
 ^~~
/in/foo.cc:13:1: error: expected unqualified-id before 'for'
 for i:=n-1 downto 1 do
 ^~~
/in/foo.cc:19:1: error: 'sum' does not name a type
 sum:=0;
 ^~~
/in/foo.cc:21:1: error: expected unqualified-id before 'for'
 for i:=1 to n do
 ^~~
/in/foo.cc:25:8: error: expected constructor, destructor, or type conversion before '(' token
 writeln(sum);
        ^
/in/foo.cc:27:1: error: 'end' does not name a type
 end.
 ^~~

信息

递交者
类型
递交
题目
P1220 拉面秘籍
语言
C++
递交时间
2021-05-29 22:13:44
评测时间
2021-05-29 22:13:44
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes