Problem fizzbuzz
User christal
Submission Time 2023-12-06 15:29:23
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fizzbuzz.cpp: In function ‘int main()’:
fizzbuzz.cpp:8:18: error: ‘a’ was not declared in this scope
8 | for(int i=1; i<=a; i++){
| ^
fizzbuzz.cpp:13:11: error: expected ‘(’ before ‘{’ token
13 | }else if{i%B==0){
| ^
| (
fizzbuzz.cpp:18:5: error: expected ‘}’ at end of input
18 | }
| ^
fizzbuzz.cpp:8:25: note: to match this ‘{’
8 | for(int i=1; i<=a; i++){
| ^
fizzbuzz.cpp:18:5: error: expected ‘}’ at end of input
18 | }
| ^
fizzbuzz.cpp:4:11: note: to match this ‘{’
4 | int main(){
| ^