Problem fizzbuzz
User fanqie
Submission Time 2023-11-22 22:49:02
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[i]=i;
| ^
fizzbuzz.cpp:11:20: error: lvalue required as left operand of assignment
11 | if (arr[i] % A = 0, arr[i] % B != 0){
| ^
fizzbuzz.cpp:13:26: error: lvalue required as left operand of assignment
13 | }else if (arr[i] % B = 0, arr[i] % A != 0){
| ^
fizzbuzz.cpp:15:27: error: lvalue required as left operand of assignment
15 | }else if (arr [i] % A = 0, arr[i] % B = 0){
| ^
fizzbuzz.cpp:15:43: error: lvalue required as left operand of assignment
15 | }else if (arr [i] % A = 0, arr[i] % B = 0){
| ^