prog.cpp:3:26: error: ‘vector’ has not been declared
int twoCitySchedCost(vector<vector<int>>& cost) {
^~~~~~
prog.cpp:3:32: error: expected ‘,’ or ‘...’ before ‘<’ token
int twoCitySchedCost(vector<vector<int>>& cost) {
^
prog.cpp: In member function ‘int Solution::twoCitySchedCost(int)’:
prog.cpp:4:15: error: ‘cost’ was not declared in this scope
int n=cost.size();
^~~~
prog.cpp:5:9: error: ‘vector’ was not declared in this scope
vector <int> dp(n+1,1e8);
^~~~~~
prog.cpp:5:17: error: expected primary-expression before ‘int’
vector <int> dp(n+1,1e8);
^~~
prog.cpp:6:9: error: ‘dp’ was not declared in this scope
dp[0]=0;
^~
prog.cpp:11:23: error: ‘min’ was not declared in this scope
dp[j]=min(dp[j-1]+cost[i][0],dp[j]+cost[i][1]);
^~~