Problem fizzbuzz
User AltheaZ
Submission Time 2023-06-18 11:23:57
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fizzbuzz.cpp: In function ‘int main()’:
fizzbuzz.cpp:6:7: error: ‘i’ was not declared in this scope
6 | for (i=1,i<=n,i++){
| ^
fizzbuzz.cpp:20:1: error: expected primary-expression before ‘}’ token
20 | }
| ^
fizzbuzz.cpp:19:3: error: expected ‘;’ before ‘}’ token
19 | }
| ^
| ;
20 | }
| ~
fizzbuzz.cpp:20:1: error: expected primary-expression before ‘}’ token
20 | }
| ^
fizzbuzz.cpp:19:3: error: expected ‘)’ before ‘}’ token
19 | }
| ^
| )
20 | }
| ~
fizzbuzz.cpp:6:6: note: to match this ‘(’
6 | for (i=1,i<=n,i++){
| ^
fizzbuzz.cpp:20:1: error: expected primary-expression before ‘}’ token
20 | }
| ^