Problem | 3nplus1 |
---|---|
User | claireau |
Submission Time | 2023-11-08 14:05:12 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
3nplus1.cpp:1:2: error: invalid preprocessing directive #insert; did you mean #assert?
1 | #insert <bits/stdc++.h>
| ^~~~~~
| assert
3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:6:10: error: lvalue required as left operand of assignment
6 | if (n%2=0)
| ^
3nplus1.cpp:7:3: error: ‘cout’ was not declared in this scope
7 | {cout << n * 3 + 1}
| ^~~~
3nplus1.cpp:1:1: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | #insert <bits/stdc++.h>
3nplus1.cpp:9:3: error: ‘cout’ was not declared in this scope
9 | {cout << n/2}
| ^~~~
3nplus1.cpp:9:3: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?