Problem fibo
User hzy
Submission Time 2026-01-13 21:15:43
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 ‘contains’
10 | if (hashmap.contains(n-1))
| ^~~~~~~~
fibo.cpp:16:15: error: ‘class std::map<int, int>’ has no member named ‘contains’
16 | if (hashmap.contains(n-2))
| ^~~~~~~~