Problem fizzbuzz
User fanqie
Submission Time 2023-11-22 22:49:52
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fizzbuzz.cpp: In function ‘int32_t main()’:
fizzbuzz.cpp:10:14: error: array must be initialized with a brace-enclosed initializer
10 | int arr[1]=1;
| ^
fizzbuzz.cpp:12:20: error: lvalue required as left operand of assignment
12 | if (arr[i] % A = 0, arr[i] % B != 0){
| ^
fizzbuzz.cpp:14:26: error: lvalue required as left operand of assignment
14 | }else if (arr[i] % B = 0, arr[i] % A != 0){
| ^
fizzbuzz.cpp:16:27: error: lvalue required as left operand of assignment
16 | }else if (arr [i] % A = 0, arr[i] % B = 0){
| ^
fizzbuzz.cpp:16:43: error: lvalue required as left operand of assignment
16 | }else if (arr [i] % A = 0, arr[i] % B = 0){
| ^