Problem 3nplus1
User Diddylan123
Submission Time 2026-08-02 11:45:38
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:7:15: error: lvalue required as left operand of assignment
7 | if (n % 2 = 1) {
| ^
3nplus1.cpp:8:8: error: unable to find numeric literal operator ‘operator""n’
8 | n = 3n + 1;
| ^~