| Problem | 3nplus1 | 
|---|---|
| User | Curiocodeexplorer | 
| Submission Time | 2023-11-08 13:59:33 | 
| Score | 0 | 
| Max Time | N/A | 
| Max Memory | N/A | 
Owl Get a Life
 3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:3:2: error: ‘cin’ was not declared in this scope
    3 |  cin >> n;
      |  ^~~
3nplus1.cpp:4:8: error: expected ‘(’ before ‘n’
    4 |  while n! = 1;
      |        ^
      |        (
3nplus1.cpp:4:9: error: expected ‘)’ before ‘!’ token
    4 |  while n! = 1;
      |        ~^
      |         )
3nplus1.cpp:4:11: error: expected primary-expression before ‘=’ token
    4 |  while n! = 1;
      |           ^
3nplus1.cpp:5:12: error: lvalue required as left operand of assignment
    5 |  if (n%2 = 0) {
      |            ^
3nplus1.cpp:7:5: error: expected ‘(’ before ‘else’
    7 |  if else (n%2 = 1) {
      |     ^~~~
      |     (
3nplus1.cpp:12:1: error: expected ‘}’ at end of input
   12 | }
      | ^
3nplus1.cpp:5:15: note: to match this ‘{’
    5 |  if (n%2 = 0) {
      |               ^
3nplus1.cpp:12:1: error: expected ‘}’ at end of input