Problem fibo
User Spiral
Submission Time 2026-07-31 11:26:56
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fibo.cpp: In function ‘int main()’:
fibo.cpp:5:5: error: ‘ios_base’ has not been declared
5 | ios_base::sync_with_stdio(false);
| ^~~~~~~~
fibo.cpp:6:5: error: ‘cin’ was not declared in this scope
6 | cin.tie(NULL);
| ^~~
fibo.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | using namespace std;
fibo.cpp:6:13: error: ‘NULL’ was not declared in this scope
6 | cin.tie(NULL);
| ^~~~
fibo.cpp:1:1: note: ‘NULL’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
+++ |+#include <cstddef>
1 | using namespace std;
fibo.cpp:15:9: error: ‘cout’ was not declared in this scope
15 | cout << a << "\n";
| ^~~~
fibo.cpp:15:9: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget