Problem | fizzbuzz |
---|---|
User | zsinfo2010 |
Submission Time | 2023-04-14 14:37:38 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
fizzbuzz.cpp: In function ‘int32_t main()’:
fizzbuzz.cpp:8:22: error: expected ‘;’ before ‘<=’ token
8 | for (int i = 1, i<=n; i++) {
| ^~
| ;
fizzbuzz.cpp:8:22: error: expected primary-expression before ‘<=’ token
8 | for (int i = 1, i<=n; i++) {
| ^~
fizzbuzz.cpp:9:29: error: lvalue required as left operand of assignment
9 | if (i % a && i % b =0) {
| ^
fizzbuzz.cpp:10:29: error: expected ‘;’ before '\xa'
10 | cout<<"FizzBuzz" '\n';
| ^~~~~
| ;
fizzbuzz.cpp:14:25: error: expected ‘;’ before '\xa'
14 | cout<<"Fizz" '\n';
| ^~~~~
| ;
fizzbuzz.cpp:20:9: error: expected ‘}’ before ‘else’
20 | else c