'lacks a cast' error - new to C++

Printable View