Problem fibo
User hzy
Submission Time 2026-01-13 21:15:57
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fibo.cpp: In function ‘int fib(int)’:
fibo.cpp:10:15: error: ‘class std::map<int, int>’ has no member named ‘has’
10 | if (hashmap.has(n-1))
| ^~~
fibo.cpp:16:15: error: ‘class std::map<int, int>’ has no member named ‘has’
16 | if (hashmap.has(n-2))
| ^~~