Problem fizzbuzz
User hitarthdangra
Submission Time 2025-06-16 16:40:40
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fizzbuzz.cpp: In function ‘int main()’:
fizzbuzz.cpp:12:44: error: expected ‘;’ before ‘{’ token
12 | } if ((i % A == 0) and (i % B == 0) {
| ^~
| ;
fizzbuzz.cpp:14:11: error: expected primary-expression before ‘else’
14 | } else {
| ^~~~
fizzbuzz.cpp:14:10: error: expected ‘)’ before ‘else’
14 | } else {
| ^~~~~
| )
fizzbuzz.cpp:12:14: note: to match this ‘(’
12 | } if ((i % A == 0) and (i % B == 0) {
| ^
fizzbuzz.cpp:18:1: error: expected ‘}’ at end of input
18 | }
| ^
fizzbuzz.cpp:4:12: note: to match this ‘{’
4 | int main() {
| ^