/ Vijos /

记录详情

Compile Error

/in/foo.cc:1:1: error: 'ar' does not name a type
 ar n,s,min,a,b,x,y,i,j:longint;
 ^~
/in/foo.cc:2:1: error: 'begin' does not name a type
 begin
 ^~~~~
/in/foo.cc:4:1: error: 'min' does not name a type
 min:=n div ab;
 ^~~
/in/foo.cc:5:1: error: expected unqualified-id before 'if'
 if n mod a<>0 then inc(min,b);
 ^~
/in/foo.cc:6:1: error: 's' does not name a type
 s:=n div xy;
 ^
/in/foo.cc:7:1: error: expected unqualified-id before 'if'
 if n mod x<>0 then inc(s,y);
 ^~
/in/foo.cc:8:1: error: expected unqualified-id before 'if'
 if s<min then min:=s;
 ^~
/in/foo.cc:9:1: error: 's' does not name a type
 s:=n div ij;
 ^
/in/foo.cc:10:1: error: expected unqualified-id before 'if'
 if n mod i<>0 then inc(s,j);
 ^~
/in/foo.cc:11:1: error: expected unqualified-id before 'if'
 if s<min then min:=s;
 ^~
/in/foo.cc:12:6: error: expected constructor, destructor, or type conversion before '(' token
 write(min);
      ^
/in/foo.cc:13:1: error: 'end' does not name a type
 end.
 ^~~

信息

递交者
类型
递交
题目
P2009 买铅笔
语言
C++
递交时间
2024-08-02 15:29:12
评测时间
2024-08-02 15:29:12
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes