Problem | fizzbuzz |
---|---|
User | AltheaZ |
Submission Time | 2023-06-18 11:24:37 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
fizzbuzz.cpp: In function ‘int main()’:
fizzbuzz.cpp:6:16: error: expected ‘;’ before ‘<=’ token
6 | for (int i=1,i<=n,i++);{
| ^~
| ;
fizzbuzz.cpp:6:16: error: expected primary-expression before ‘<=’ token
6 | for (int i=1,i<=n,i++);{
| ^~
fizzbuzz.cpp:6:23: error: expected ‘;’ before ‘)’ token
6 | for (int i=1,i<=n,i++);{
| ^
| ;
fizzbuzz.cpp:7:6: error: expected ‘(’ before ‘i’
7 | if i%a==0 and i%b==0;{
| ^
| (
fizzbuzz.cpp:10:3: error: ‘else’ without a previous ‘if’
10 | else if i%a==0;{
| ^~~~
fizzbuzz.cpp:10:11: error: expected ‘(’ before ‘i’
10 | else if i%a==0;{
| ^
| (
fizzbuzz.cpp:13:3: error: ‘else’ without a previous ‘if’
13 | else if i%b==0;{
| ^~~~
fizzbuzz.cp