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

Compile Error

fizzbuzz.cpp: In function ‘int32_t main()’:
fizzbuzz.cpp:14:11: error: invalid operands of types ‘int(const char*, ...)’ and ‘const char [5]’ to binary ‘operator<<’
14 | printf << "Fizz";
| ~~~~~~ ^~ ~~~~~~
| | |
| | const char [5]
| int(const char*, ...)
fizzbuzz.cpp:15:43: error: expected ‘;’ before ‘{’ token
15 | }else (arr[i] % B == 0, arr[i] % A != 0){
| ^
| ;
fizzbuzz.cpp:17:4: error: ‘else’ without a previous ‘if’
17 | }else (arr [i] % A == 0, arr[i] % B == 0){
| ^~~~
fizzbuzz.cpp:17:44: error: expected ‘;’ before ‘{’ token
17 | }else (arr [i] % A == 0, arr[i] % B == 0){
| ^
| ;