Your task is to declare a scoped enum class named ErrorCode with four values:
ErrorCode
Also implement a function const char* toString(ErrorCode e) that returns a string of a of provided error code.
error code : None , function return : "None" string
None
"None"
The program will read an integer, map it to the enum, and print the corresponding error message.
Example Input:
0
Output:
Input:
2
Overflow
Test Cases
Test Results
Input
Expected Output