Problem fizzbuzz
User EuniceLoh
Submission Time 2024-11-07 10:59:37
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fizzbuzz.cpp: In function ‘int32_t main()’:
fizzbuzz.cpp:10:20: error: lvalue required as left operand of assignment
10 | if (i%a=0 && i%b=0 cout<<"FizzBuzz" endl;
| ^
fizzbuzz.cpp:11:3: error: expected primary-expression before ‘else’
11 | else if(i%a=0) cout<<"Fizz" endl;
| ^~~~
fizzbuzz.cpp:10:44: error: expected ‘)’ before ‘else’
10 | if (i%a=0 && i%b=0 cout<<"FizzBuzz" endl;
| ~ ^
| )
11 | else if(i%a=0) cout<<"Fizz" endl;
| ~~~~
fizzbuzz.cpp:12:15: error: lvalue required as left operand of assignment
12 | else if(i%b=0) cout<<"Buzz" endl;
| ^
fizzbuzz.cpp:12:30: error: expected ‘;’ before ‘endl’
12 | else if(i%b=0) cout<<"Buzz" endl;
|