/ Vijos /

记录详情

Compile Error

/in/foo.cc:1:1: error: 'var' does not name a type
 var n,a,b,c,d,e,f,min,tot:longint;
 ^~~
/in/foo.cc:2:1: error: 'begin' does not name a type
 begin
 ^~~~~
/in/foo.cc:4:7: error: expected constructor, destructor, or type conversion before '(' token
 readln(a,b);
       ^
/in/foo.cc:5:7: error: expected constructor, destructor, or type conversion before '(' token
 readln(c,d);
       ^
/in/foo.cc:6:7: error: expected constructor, destructor, or type conversion before '(' token
 readln(e,f);
       ^
/in/foo.cc:7:1: error: expected unqualified-id before 'if'
 if (n mod a=0) then tot:=(n div a)*b
 ^~
/in/foo.cc:9:1: error: 'min' does not name a type
 min:=tot;
 ^~~
/in/foo.cc:10:1: error: expected unqualified-id before 'if'
 if (n mod c=0) then tot:=(n div c)*d
 ^~
/in/foo.cc:12:1: error: expected unqualified-id before 'if'
 if tot<min then
 ^~
/in/foo.cc:14:1: error: expected unqualified-id before 'if'
 if (n mod e=0) then tot:=(n div e)*f
 ^~
/in/foo.cc:16:1: error: expected unqualified-id before 'if'
 if tot<min then
 ^~
/in/foo.cc:18:8: error: expected constructor, destructor, or type conversion before '(' token
 writeln(min);
        ^
/in/foo.cc:19:1: error: 'end' does not name a type
 end.
 ^~~

信息

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