/ Vijos /

记录详情

Compile Error

foo.cc:1:1: error: 'var' does not name a type
    1 | var n,a,b,c,d,e,f,min,tot:longint;
      | ^~~
foo.cc:2:1: error: 'begin' does not name a type
    2 | begin
      | ^~~~~
foo.cc:4:7: error: expected constructor, destructor, or type conversion before '(' token
    4 | readln(a,b);
      |       ^
foo.cc:5:7: error: expected constructor, destructor, or type conversion before '(' token
    5 | readln(c,d);
      |       ^
foo.cc:6:7: error: expected constructor, destructor, or type conversion before '(' token
    6 | readln(e,f);
      |       ^
foo.cc:7:1: error: expected unqualified-id before 'if'
    7 | if (n mod a=0) then tot:=(n div a)*b
      | ^~
foo.cc:9:1: error: 'min' does not name a type
    9 | min:=tot;
      | ^~~
foo.cc:10:1: error: expected unqualified-id before 'if'
   10 | if (n mod c=0) then tot:=(n div c)*d
      | ^~
foo.cc:12:1: error: expected unqualified-id before 'if'
   12 | if tot<min then
      | ^~
foo.cc:14:1: error: expected unqualified-id before 'if'
   14 | if (n mod e=0) then tot:=(n div e)*f
      | ^~
foo.cc:16:1: error: expected unqualified-id before 'if'
   16 | if tot<min then
      | ^~
foo.cc:18:8: error: expected constructor, destructor, or type conversion before '(' token
   18 | writeln(min);
      |        ^
foo.cc:19:1: error: 'end' does not name a type
   19 | end.
      | ^~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P2009 买铅笔
语言
C++
递交时间
2021-12-18 16:45:32
评测时间
2021-12-18 16:45:32
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes