Problem 3nplus1
User BigBackAdrino
Submission Time 2026-06-09 23:58:16
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1.cpp:8:2: error: invalid preprocessing directive #involve
8 | #involve <iostream>
| ^~~~~~~
3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:12:2: error: ‘cin’ was not declared in this scope
12 | cin>>n;
| ^~~
3nplus1.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | //The 3n+1 sequence is generated as follows.
3nplus1.cpp:20:2: error: ‘cout’ was not declared in this scope
20 | cout<<n;
| ^~~~
3nplus1.cpp:20:2: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?