Problem fizzbuzz
User latigidcody
Submission Time 2026-06-22 16:32:48
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fizzbuzz.cpp: In function ‘int main()’:
fizzbuzz.cpp:16:13: error: expected initializer before ‘%’ token
16 | if (int i % A == 0){
| ^
fizzbuzz.cpp:16:12: error: expected ‘)’ before ‘%’ token
16 | if (int i % A == 0){
| ~ ^~
| )
fizzbuzz.cpp:19:18: error: expected initializer before ‘%’ token
19 | else if (int i % B == 0){
| ^
fizzbuzz.cpp:19:17: error: expected ‘)’ before ‘%’ token
19 | else if (int i % B == 0){
| ~ ^~
| )
fizzbuzz.cpp:22:18: error: expected initializer before ‘%’ token
22 | else if (int i % A ==0 and int[i] % B == 0){
| ^
fizzbuzz.cpp:22:17: error: expected ‘)’ before ‘%’ token
22 | else if (int i % A ==0 and int[i] % B == 0){
| ~ ^~
| )