Problem 3nplus1
User Curiocodeexplorer
Submission Time 2023-11-08 14:09:57
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:6:8: error: expected ‘(’ before ‘!’ token
6 | while !n = 1; {
| ^
| (
3nplus1.cpp:6:13: error: lvalue required as left operand of assignment
6 | while !n = 1; {
| ^
3nplus1.cpp:6:14: error: expected ‘)’ before ‘;’ token
6 | while !n = 1; {
| ~ ^
| )
3nplus1.cpp:11:7: error: unable to find numeric literal operator ‘operator""n’
11 | n = 3n + 1;
| ^~