I'm using Microsoft Visual Studio as my IDE, and I have this build error from my compiler saying that the max is undeclared. However, in my textbook they just declared max as (a > b) ? a : b; . I copied the code exactly from my textbook and I don't understand this build error or what other error that could be causing this issue. Any help or suggestions would be great.