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

Compile Error

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