Problem | 3nplus1 |
---|---|
User | itchydeez |
Submission Time | 2023-11-10 09:46:57 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
3nplus1.cpp:3:5: error: cannot declare ‘::main’ to be a global variable
3 | int main{
| ^~~~
3nplus1.cpp:4:2: error: expected primary-expression before ‘int’
4 | int n;
| ^~~
3nplus1.cpp:4:2: error: expected ‘}’ before ‘int’
3nplus1.cpp:3:9: note: to match this ‘{’
3 | int main{
| ^
3nplus1.cpp:5:2: error: ‘cin’ does not name a type; did you mean ‘sin’?
5 | cin>>n;
| ^~~
| sin
3nplus1.cpp:6:2: error: ‘cout’ does not name a type
6 | cout<<n;
| ^~~~
3nplus1.cpp:7:2: error: expected unqualified-id before ‘while’
7 | while (n/=1){
| ^~~~~
3nplus1.cpp:24:1: error: expected declaration before ‘}’ token
24 | }
| ^