Problem 3nplus1
User OMW
Submission Time 2024-04-05 13:52:31
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1.cpp:5:1: error: ‘cin’ does not name a type; did you mean ‘sin’?
5 | cin >> a;
| ^~~
| sin
3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:15:12: error: expected ‘;’ before ‘}’ token
15 | cout << a
| ^
| ;
16 | }
| ~
3nplus1.cpp:16:1: error: expected ‘}’ at end of input
16 | }
| ^
3nplus1.cpp:8:18: note: to match this ‘{’
8 | while ( a != 1) {
| ^
3nplus1.cpp:16:1: error: expected ‘}’ at end of input
16 | }
| ^
3nplus1.cpp:7:11: note: to match this ‘{’
7 | int main(){
| ^