67. Error Codes Enum

 Your task is to declare a scoped enum class named ErrorCode with four values:

  • None
  • Timeout
  • Overflow
  • Invalid
     

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

The program will read an integer, map it to the enum, and print the corresponding error message.


Example
 Input:

0

Output:

None

 

Input:

2

Output:

Overflow
Loading...

Input

0

Expected Output

None