Problem fizzbuzz
User Shawntan
Submission Time 2026-06-22 16:08:23
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fizzbuzz.cpp: In function ‘int main()’:
fizzbuzz.cpp:8:9: error: ‘i’ was not declared in this scope
8 | for (i = 1, i <= n, i++){
| ^
fizzbuzz.cpp:14:2: error: expected primary-expression before ‘return’
14 | return 0;
| ^~~~~~
fizzbuzz.cpp:13:5: error: expected ‘;’ before ‘return’
13 | }
| ^
| ;
14 | return 0;
| ~~~~~~
fizzbuzz.cpp:14:2: error: expected primary-expression before ‘return’
14 | return 0;
| ^~~~~~
fizzbuzz.cpp:13:5: error: expected ‘)’ before ‘return’
13 | }
| ^
| )
14 | return 0;
| ~~~~~~
fizzbuzz.cpp:8:8: note: to match this ‘(’
8 | for (i = 1, i <= n, i++){
| ^