Problem fizzbuzz
User xingrui
Submission Time 2024-06-26 16:25:01
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fizzbuzz.cpp: In function ‘int main()’:
fizzbuzz.cpp:8:22: error: expected primary-expression before ‘=’ token
8 | if((i % 3) === 0){
| ^
fizzbuzz.cpp:11:22: error: expected primary-expression before ‘=’ token
11 | if((i % 5) === 0){
| ^
fizzbuzz.cpp:15:28: error: expected primary-expression before ‘=’ token
15 | if(output.length === 0){
| ^
fizzbuzz.cpp:16:34: error: expected ‘;’ before ‘}’ token
16 | output = to_string(i)
| ^
| ;
17 | }
| ~
fizzbuzz.cpp:20:5: error: expected ‘}’ at end of input
20 | }
| ^
fizzbuzz.cpp:4:1: note: to match this ‘{’
4 | {
| ^