Problem | fizzbuzz |
---|---|
User | fanqie |
Submission Time | 2023-11-22 22:58:43 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
fizzbuzz.cpp: In function ‘int32_t main()’:
fizzbuzz.cpp:9:8: error: invalid operands of types ‘int(const char*, ...)’ and ‘long long int’ to binary ‘operator>>’
9 | scanf >> N >> A >> B;
| ~~~~~ ^~ ~
| | |
| | long long int
| int(const char*, ...)
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){
| ^~~~