Problem wormholes
User ForgottenDragon
Submission Time 2025-12-07 16:49:22
Score 0
Max Time N/A
Max Memory N/A

Compile Error

wormholes.cpp:21:1: error: ‘unoredered_map’ does not name a type
21 | unoredered_map<int, int> memo;
| ^~~~~~~~~~~~~~
wormholes.cpp: In function ‘long long int time(long long int)’:
wormholes.cpp:24:9: error: ‘memo’ was not declared in this scope
24 | if (memo.count(n)) return memo[n];
| ^~~~
wormholes.cpp:26:24: error: ‘memo’ was not declared in this scope
26 | if (n <= 1) return memo[n] = 0;
| ^~~~
wormholes.cpp:27:24: error: ‘memo’ was not declared in this scope
27 | if (n == 2) return memo[n] = 1;
| ^~~~
wormholes.cpp:35:12: error: ‘memo’ was not declared in this scope
35 | return memo[n] = count;
| ^~~~