← The Preprocessor: Macros & Conditional Compilation

Named Constants

easy

main already checks score against MIN_SCORE and MAX_SCORE – your only job is to #define both, to 0 and 100 respectively, so the file compiles at all.

Notice there’s no semicolon and no = in a #define – it isn’t a C statement, it’s a preprocessor directive, and the compiler never sees MIN_SCORE or MAX_SCORE as names at all; by the time compilation starts, every occurrence has already been replaced with the literal number.

Your solution

"Run" uses the sample stdin ("50"). "Submit" checks your code against all 4 test cases.

Test results

Submit your solution to run it against all test cases.

Hints

    Reference solution