Problem wormholes
User Haocheng
Submission Time 2024-11-14 16:22:44
Score 0
Max Time N/A
Max Memory N/A

Compile Error

wormholes.cpp: In function ‘int32_t main()’:
wormholes.cpp:25:20: error: ‘i’ was not declared in this scope
25 | for( auto j:worm[i]){
| ^
wormholes.cpp:29:9: error: ‘dp’ was not declared in this scope
29 | cout<< dp[n-1]<<'\n';
| ^~
wormholes.cpp:29:12: error: ‘n’ was not declared in this scope
29 | cout<< dp[n-1]<<'\n';
| ^