Problem fizzbuzz
User Ast8ine
Submission Time 2026-02-14 21:58:18
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fizzbuzz.cpp: In function ‘int main()’:
fizzbuzz.cpp:8:19: error: invalid operands of types ‘const char [5]’ and ‘const char [2]’ to binary ‘operator+’
8 | cout << "Fizz" + "\n";
| ~~~~~~ ^ ~~~~
| | |
| | const char [2]
| const char [5]
fizzbuzz.cpp:11:19: error: invalid operands of types ‘const char [5]’ and ‘const char [2]’ to binary ‘operator+’
11 | cout << "Buzz" + "\n";
| ~~~~~~ ^ ~~~~
| | |
| | const char [2]
| const char [5]
fizzbuzz.cpp:14:23: error: invalid operands of types ‘const char [9]’ and ‘const char [2]’ to binary ‘operator+’
14 | cout << "FizzBuzz" + "\n";
| ~~~~~~~~~~ ^ ~~~~
| | |
| | const char [2]
| const char [9]