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

Compile Error

3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:17:27: error: expression cannot be used as a function
17 | CurrentResult = 3(Input)+1;
| ^
3nplus1.cpp:20:27: error: expression cannot be used as a function
20 | CurrentResult = 3(Input)+1;
| ^
3nplus1.cpp:21:19: error: expression cannot be used as a function
21 | Input = 3(Input)+1;
| ^
3nplus1.cpp:23:1: error: expected ‘}’ at end of input
23 | }
| ^
3nplus1.cpp:6:14: note: to match this ‘{’
6 | signed main(){
| ^