Problem 3nplus1
User whvun
Submission Time 2023-02-16 17:07:24
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:6:12: error: expected ‘;’ before ‘>’ token
6 | for (int i > 1;a) {
| ^~
| ;
3nplus1.cpp:6:13: error: expected primary-expression before ‘>’ token
6 | for (int i > 1;a) {
| ^
3nplus1.cpp:8:7: error: expected ‘;’ before ‘}’ token
8 | a/2
| ^
| ;
9 | }
| ~
3nplus1.cpp:11:13: error: lvalue required as left operand of assignment
11 | 3 * a += 1
| ^
3nplus1.cpp:14:10: error: expected ‘}’ at end of input
14 | return 0;
| ^
3nplus1.cpp:4:12: note: to match this ‘{’
4 | int main() {
| ^