cyberland.cpp: In function 'double solve(int, int, int, int, std::vector<int>, std::vector<int>, std::vector<int>, std::vector<int>)':
cyberland.cpp:11:23: warning: overflow in conversion from 'double' to 'std::vector<int>::value_type' {aka 'int'} changes value from '1.0e+18' to '2147483647' [-Woverflow]
11 | vector<int> dp(N, inf), tmp(N, inf)
| ^~~
cyberland.cpp:11:36: warning: overflow in conversion from 'double' to 'std::vector<int>::value_type' {aka 'int'} changes value from '1.0e+18' to '2147483647' [-Woverflow]
11 | vector<int> dp(N, inf), tmp(N, inf)
| ^~~
cyberland.cpp:12:5: error: expected ',' or ';' before 'for'
12 | for(int i = 0;i < M; i++){
| ^~~
cyberland.cpp:12:19: error: 'i' was not declared in this scope
12 | for(int i = 0;i < M; i++){
| ^
cyberland.cpp:27:16: error: 'a' was not declared in this scope
27 | if(a[u] == 2 && pos < K){
| ^
cyberland.cpp:27:29: error: 'pos' was not declared in this scope; did you mean 'pow'?
27 | if(a[u] == 2 && pos < K){
| ^~~
| pow
cyberland.cpp:36:53: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}[int]' for array subscript
36 | for(int i = 0; i <= K; i++) ans = min(ans, dp[H][i]);
| ^
cyberland.cpp:37:35: error: expected primary-expression before '}' token
37 | return (ans >= inf/2 ? -1.0 : }
| ^
cyberland.cpp:37:34: error: expected ')' before '}' token
37 | return (ans >= inf/2 ? -1.0 : }
| ~ ^~
| )
cyberland.cpp:37:34: error: expected ';' before '}' token
37 | return (ans >= inf/2 ? -1.0 : }
| ^~
| ;