Problem 3nplus1
User fanqie
Submission Time 2023-11-09 15:37:28
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:6:24: error: expected ‘;’ before ‘)’ token
6 | for (n <= 10000, n > 1);{
| ^
| ;
3nplus1.cpp:6:26: error: expected primary-expression before ‘{’ token
6 | for (n <= 10000, n > 1);{
| ^
3nplus1.cpp:6:26: error: expected ‘;’ before ‘{’ token
6 | for (n <= 10000, n > 1);{
| ^
| ;
3nplus1.cpp:6:26: error: expected primary-expression before ‘{’ token
3nplus1.cpp:6:26: error: expected ‘)’ before ‘{’ token
6 | for (n <= 10000, n > 1);{
| ~ ^
| )
3nplus1.cpp:8:12: error: unable to find numeric literal operator ‘operator""n’
8 | cout << 3n+1;
| ^~