Problem 3nplus1
User earthyeet
Submission Time 2025-07-29 11:48:31
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:9:14: error: too many arguments to function ‘int calcu()’
9 | x = calcu(x)
| ^
3nplus1.cpp:4:5: note: declared here
4 | int calcu();
| ^~~~~
3nplus1.cpp:9:15: error: expected ‘;’ before ‘cout’
9 | x = calcu(x)
| ^
| ;
10 | cout << x
| ~~~~
3nplus1.cpp:17:9: error: expected ‘}’ at end of input
17 | return x
| ^
3nplus1.cpp:8:17: note: to match this ‘{’
8 | while (x != 1) {
| ^
3nplus1.cpp:17:9: error: expected ‘}’ at end of input
17 | return x
| ^
3nplus1.cpp:6:12: note: to match this ‘{’
6 | int main() {
| ^