Problem fizzbuzz
User thelusidian
Submission Time 2024-02-19 17:25:52
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fizzbuzz.cpp: In function ‘int main()’:
fizzbuzz.cpp:10:9: error: invalid conversion from ‘const char*’ to ‘char’ [-fpermissive]
10 | str = "";
| ^~
| |
| const char*
fizzbuzz.cpp:12:8: error: invalid conversion from ‘const char*’ to ‘char’ [-fpermissive]
12 | str += "Fizz";
| ~~~~^~~~~~~~~
| |
| const char*
fizzbuzz.cpp:15:8: error: invalid conversion from ‘const char*’ to ‘char’ [-fpermissive]
15 | str += "Buzz";
| ~~~~^~~~~~~~~
| |
| const char*
fizzbuzz.cpp:17:13: error: invalid conversion from ‘const char*’ to ‘char’ [-fpermissive]
17 | if (str = ""){
| ^~
| |
| const char*