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

Compile Error

fizzbuzz.cpp: In function ‘int main()’:
fizzbuzz.cpp:6:5: error: conflicting declaration ‘int c [n]’
6 | int c[n];
| ^
fizzbuzz.cpp:4:11: note: previous declaration as ‘int c’
4 | int a,b,n,c;
| ^
fizzbuzz.cpp:8:16: error: lvalue required as left operand of assignment
8 | if ( a % n = 0 ){
| ^
fizzbuzz.cpp:10:21: error: lvalue required as left operand of assignment
10 | else if ( b % n = 0 ){
| ^
fizzbuzz.cpp:12:29: error: lvalue required as left operand of assignment
12 | else if ( ( b * a ) % n = 0 ){
| ^