0_0_37266966_14551.cpp:3:22: error: 'vector' has not been declared
int minimumTotal(vector<vector<int>>& triangle) {
^
0_0_37266966_14551.cpp:3:28: error: expected ',' or '...' before '<' token
int minimumTotal(vector<vector<int>>& triangle) {
^
0_0_37266966_14551.cpp: In member function 'int Solution::minimumTotal(int)':
0_0_37266966_14551.cpp:4:17: error: 'triangle' was not declared in this scope
int n = triangle.size();
^
0_0_37266966_14551.cpp:6:9: error: 'vector' was not declared in this scope
vector<int> dp = triangle[n-1];
^
0_0_37266966_14551.cpp:6:16: error: expected primary-expression before 'int'
vector<int> dp = triangle[n-1];
^
0_0_37266966_14551.cpp:12:17: error: 'dp' was not declared in this scope
dp[j] = min(dp[j],dp[j+1])+triangle[i][j];
^
0_0_37266966_14551.cpp:12:42: error: 'min' was not declared in this scope
dp[j] = min(dp[j],dp[j+1])+triangle[i][j];
^
0_0_37266966_14551.cpp:15:16: error: 'dp' was not declared in this scope
return dp[0];
^
|