Problem 3nplus1
User ryuki
Submission Time 2024-02-28 12:47:19
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1.cpp:4:17: error: ‘num’ was not declared in this scope; did you mean ‘enum’?
4 | int next_number(num) {
| ^~~
| enum
3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:24:24: error: ‘next_number’ cannot be used as a function
24 | num = next_number(num);
| ^