Problem 3nplus1II
User lukedin13542
Submission Time 2023-05-22 22:14:08
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1II.cpp:1:1: error: ‘include’ does not name a type
1 | include <iostream>
| ^~~~~~~
3nplus1II.cpp:3:19: error: expected unqualified-id before numeric constant
3 | typedef long long 11;
| ^~
3nplus1II.cpp: In function ‘int main()’:
3nplus1II.cpp:6:12: error: ‘cin’ was not declared in this scope
6 | int n, m; cin >> n >> m;
| ^~~
3nplus1II.cpp:12:10: error: expected primary-expression before ‘==’ token
12 | if (n% == 1) n = n*3+1;
| ^~
3nplus1II.cpp:13:13: error: expected ‘;’ before ‘}’ token
13 | else n /=2
| ^
| ;
14 | }
| ~
3nplus1II.cpp:15:2: error: ‘cout’ was not declared in this scope
15 | cout << n << end1;
| ^~~~
3nplus1II.cpp:15:15: error: ‘end1’ was not declared in this scope
15 | cout << n << end1;