Problem fibo
User Biologyhater123
Submission Time 2025-02-19 15:54:09
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fibo.cpp: In function ‘int main()’:
fibo.cpp:14:5: error: expected ‘,’ or ‘;’ before ‘int’
14 | int n, f0=0, f1=1;
| ^~~
fibo.cpp:15:5: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
15 | cin >>n;
| ^~~
| std::cin
In file included from fibo.cpp:9:
/usr/include/c++/9/iostream:60:18: note: ‘std::cin’ declared here
60 | extern istream cin; /// Linked to standard input
| ^~~
fibo.cpp:15:11: error: ‘n’ was not declared in this scope
15 | cin >>n;
| ^
fibo.cpp:16:10: error: ‘i’ was not declared in this scope
16 | for (i=0; i<n; i++){
| ^
fibo.cpp:17:6: error: ‘cout’ was not declared in this scope; did you mean ‘std::cout’?
17 | cout << f0 << '\n';
| ^~~~
| std::cout
In file included from fibo.cpp:9:
/usr/include/c++/9/iostream:61