Problem 3nplus1
User anantika
Submission Time 2024-08-04 20:54:47
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:5:7: error: expected primary-expression before ‘int’
5 | cin>>int n;
| ^~~
3nplus1.cpp:6:14: error: expected initializer before ‘>’ token
6 | while (int n>1){
| ^
3nplus1.cpp:6:14: error: expected ‘)’ before ‘>’ token
6 | while (int n>1){
| ~ ^
| )
3nplus1.cpp:6:14: error: expected primary-expression before ‘>’ token
3nplus1.cpp:15:1: error: expected ‘}’ at end of input
15 | }
| ^
3nplus1.cpp:3:11: note: to match this ‘{’
3 | int main(){
| ^