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

Compile Error

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