Main.cpp: In function 'll f(int, int, int)':
Main.cpp:20:25: error: expected primary-expression before ')' token
20 | for(int i = 1; i <= )
| ^
Main.cpp:20:24: error: expected ';' before ')' token
20 | for(int i = 1; i <= )
| ^~
| ;
Main.cpp:22:9: error: invalid types 'int [500099][bool [500099][2][2]]' for array subscript
22 | if(c[v] == s) dp[k][s][e] = min(dp[k][s][e], f(k - 1, (s + 1) % 2, e) + fr[v]);
| ^
Main.cpp:22:79: error: invalid types 'int [500099][bool [500099][2][2]]' for array subscript
22 | if(c[v] == s) dp[k][s][e] = min(dp[k][s][e], f(k - 1, (s + 1) % 2, e) + fr[v]);
| ^
Main.cpp:23:9: error: invalid types 'int [500099][bool [500099][2][2]]' for array subscript
23 | if(c[v] == e) dp[k][s][e] = min(dp[k][s][e], f(k - 1, s, (e + 1) % 2) + ba[v]);
| ^
Main.cpp:23:79: error: invalid types 'int [500099][bool [500099][2][2]]' for array subscript
23 | if(c[v] == e) dp[k][s][e] = min(dp[k][s][e], f(k - 1, s, (e + 1) % 2) + ba[v]);
| ^
Main.cpp: In function 'int main()':
Main.cpp:52:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
52 | scanf("%d", &n);
| ~~~~~^~~~~~~~~~
Main.cpp:54:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
54 | scanf("%d",h+i);
| ~~~~~^~~~~~~~~~