Problem fizzbuzz
User Ignatius
Submission Time 2025-03-03 17:01:01
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fizzbuzz.cpp: In function ‘int main()’:
fizzbuzz.cpp:8:10: error: ‘n’ was not declared in this scope
8 | int x = n;
| ^
fizzbuzz.cpp:9:10: error: ‘i’ was not declared in this scope
9 | cin>>n>>i
| ^
fizzbuzz.cpp:14:3: error: ‘else’ without a previous ‘if’
14 | else if(i%2==1) {
| ^~~~