Problem | fizzbuzz |
---|---|
User | xingrui |
Submission Time | 2024-06-26 16:15:55 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
fizzbuzz.cpp: In function ‘int main()’:
fizzbuzz.cpp:5:5: error: ‘var’ was not declared in this scope
5 | for(var i = 1; i <= 100; i++){
| ^~~
fizzbuzz.cpp:5:16: error: ‘i’ was not declared in this scope
5 | for(var i = 1; i <= 100; i++){
| ^
fizzbuzz.cpp:6:12: error: expected ‘;’ before ‘output’
6 | var output = "";
| ^~~~~~~
| ;
fizzbuzz.cpp:8:22: error: expected primary-expression before ‘=’ token
8 | if((i % 3) === 0){
| ^
fizzbuzz.cpp:9:13: error: ‘output’ was not declared in this scope
9 | output += "Fizz";
| ^~~~~~
fizzbuzz.cpp:11:22: error: expected primary-expression before ‘=’ token
11 | if((i % 5) === 0){
| ^
fizzbuzz.cpp:12:13: error: ‘output’ was not declared in this scope
12 | output += "Buzz";