Problem fibo
User KingH
Submission Time 2025-08-18 16:11:57
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fibo.cpp: In function ‘int main()’:
fibo.cpp:6:6: error: redeclaration of ‘int x’
6 | int x = 0, y 1
| ^
fibo.cpp:4:6: note: ‘int x’ previously declared here
4 | int x, y, n;
| ^
fibo.cpp:6:15: error: expected initializer before numeric constant
6 | int x = 0, y 1
| ^
fibo.cpp:7:18: error: ‘i’ was not declared in this scope
7 | for int (i = 0; i < n; i++){
| ^