Problem fizzbuzz
User lxmine
Submission Time 2026-05-26 23:02:16
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fizzbuzz.cpp: In function ‘int main()’:
fizzbuzz.cpp:7:6: error: ‘else’ without a previous ‘if’
7 | } else if (i%a==0){std::cout<<"Fizz"<<std::endl;}
| ^~~~
fizzbuzz.cpp:7:15: error: ‘i’ was not declared in this scope
7 | } else if (i%a==0){std::cout<<"Fizz"<<std::endl;}
| ^
fizzbuzz.cpp: At global scope:
fizzbuzz.cpp:10:1: error: expected declaration before ‘}’ token
10 | }
| ^