Problem fizzbuzz
User fanqie
Submission Time 2024-07-15 08:57:13
Score 0
Max Time N/A
Max Memory N/A

Compile Error

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