Problem wormholes
User dieunq1309
Submission Time 2023-08-29 10:18:30
Score 0
Max Time N/A
Max Memory N/A

Compile Error

wormholes.cpp: In function ‘int main()’:
wormholes.cpp:18:26: error: template argument 2 is invalid
18 | map<int, vector<int> jump;
| ^~~~
wormholes.cpp:18:26: error: template argument 4 is invalid
wormholes.cpp:21:9: error: ‘jump’ was not declared in this scope
21 | jump[y].push_back(x);
| ^~~~
wormholes.cpp:29:8: error: ‘jump’ was not declared in this scope
29 | if (!jump[i].empty())
| ^~~~
wormholes.cpp:35:35: error: expected ‘;’ before ‘}’ token
35 | dp[i] = min(dp[i], dp[i-1] + 1)
| ^
| ;
36 | }
| ~