| Problem | 3nplus1 |
|---|---|
| User | lygrace |
| Submission Time | 2026-06-22 16:54:32 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
3nplus1.cpp:1:2: error: invalid preprocessing directive #included; did you mean #include?
1 | #included <iostream>
| ^~~~~~~~
| include
3nplus1.cpp:2:2: error: invalid preprocessing directive #included; did you mean #include?
2 | #included <algorithm>
| ^~~~~~~~
| include
3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:7:2: error: ‘cin’ was not declared in this scope
7 | cin>>n;
| ^~~
3nplus1.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | #included <iostream>
3nplus1.cpp:10:8: error: expected ‘;’ before ‘}’ token
10 | n/=2
| ^
| ;
11 | }
| ~
3nplus1.cpp:13:9: error: expected ‘;’ before ‘}’ token
13 | n*3+1
| ^
| ;
14 | }
| ~ <