FPGA Code not Compiling

Are you using the exact same version (Altera Quartus prime 15.1 Lite Edition with Cyclone IV device support) that was used for the gateware development ?

If you search, you’ll find that other people had similar problems attempting to use later versions.
e.g.