Compiling programs with cin and cout

Running Xcode 9.2 and earlier on my Mac mini, cin and cout work just fine. On my new MacBook Pro (late 2017) the program fails to compile. Is there some setting I can change to resolve this?


David