/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.
^~~