Problem fizzbuzz
User AltheaZ
Submission Time 2023-06-18 11:24:22
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:6:21: error: expected primary-expression before ‘{’ token
6 | for (i=1,i<=n,i++);{
| ^
fizzbuzz.cpp:6:21: error: expected ‘;’ before ‘{’ token
6 | for (i=1,i<=n,i++);{
| ^
| ;
fizzbuzz.cpp:6:21: error: expected primary-expression before ‘{’ token
fizzbuzz.cpp:6:21: error: expected ‘)’ before ‘{’ token
6 | for (i=1,i<=n,i++);{
| ~ ^
| )
fizzbuzz.cpp:7:6: error: expected ‘(’ before ‘i’
7 | if i%a==0 and i%b==0;{
| ^
| (
fizzbuzz.cpp:10:3: error: ‘else’ without a previous ‘if’
10 | else if i%a==0;{
| ^~~~
fizzbuzz.cpp:10:11: error: expected ‘(’ before ‘i’
10 | else