Problem fizzbuzz
User AltheaZ
Submission Time 2023-06-18 11:23:20
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:2: error: expected primary-expression before ‘return’
20 | return 0;
| ^~~~~~
fizzbuzz.cpp:19:3: error: expected ‘;’ before ‘return’
19 | }
| ^
| ;
20 | return 0;
| ~~~~~~
fizzbuzz.cpp:20:2: error: expected primary-expression before ‘return’
20 | return 0;
| ^~~~~~
fizzbuzz.cpp:19:3: error: expected ‘)’ before ‘return’
19 | }
| ^
| )
20 | return 0;
| ~~~~~~
fizzbuzz.cpp:6:6: note: to match this ‘(’
6 | for (i=1,i<=n,i++){
| ^