Problem fizzbuzz
User Cat
Submission Time 2025-02-17 13:55:18
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fizzbuzz.cpp: In function ‘int main()’:
fizzbuzz.cpp:8:6: error: redeclaration of ‘int c [n]’
8 | int c[n]=c[0];
| ^
fizzbuzz.cpp:6:6: note: ‘int c [n]’ previously declared here
6 | int c[n];
| ^
fizzbuzz.cpp:10:22: error: lvalue required as left operand of assignment
10 | if ( n%(a*b)=0) {
| ^
fizzbuzz.cpp:12:27: error: lvalue required as left operand of assignment
12 | } else if (i % a= 0) {
| ^
fizzbuzz.cpp:14:28: error: lvalue required as left operand of assignment
14 | } else if (i % b = 0) {
| ^