Problem 3nplus1
User PyAce
Submission Time 2025-06-18 15:36:04
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:18:28: error: expression cannot be used as a function
18 | CurrentResult = 3(Input)+1;
| ^
3nplus1.cpp:21:28: error: expression cannot be used as a function
21 | CurrentResult = 3(Input)+1;
| ^
3nplus1.cpp:22:20: error: expression cannot be used as a function
22 | Input = 3(Input)+1;
| ^
3nplus1.cpp:23:13: error: expected ‘;’ before ‘}’ token
23 | throw 505
| ^
| ;
24 | } catch(505){
| ~
3nplus1.cpp:24:6: error: expected primary-expression before ‘catch’
24 | } catch(505){
| ^~~~~
3nplus1.cpp:29:1: error: expected ‘catch’ before ‘}’ token
29 | }
| ^
3nplus1.cpp:29:1: error: expected ‘(’ before ‘}’ token
29 | }
| ^
| (
3nplus1.cpp:29:1: error: e