0_0_38888067_15835.cpp:3:20: error: 'vector' has not been declared
3 | bool stoneGame(vector<int>& piles) {
| ^~~~~~
0_0_38888067_15835.cpp:3:26: error: expected ',' or '...' before '<' token
3 | bool stoneGame(vector<int>& piles) {
| ^
0_0_38888067_15835.cpp: In member function 'bool Solution::stoneGame(int)':
0_0_38888067_15835.cpp:14:17: error: 'piles' was not declared in this scope
14 | int n = piles.size();
| ^~~~~
0_0_38888067_15835.cpp:15:16: error: 'vector' was not declared in this scope
15 | vector<vector<int>> dps(n);
| ^~~~~~
0_0_38888067_15835.cpp:15:23: error: expected primary-expression before 'int'
15 | vector<vector<int>> dps(n);
| ^~~
0_0_38888067_15835.cpp:18:17: error: 'dps' was not declared in this scope
18 | dps[i].resize(n);
| ^~~
0_0_38888067_15835.cpp:23:17: error: 'dps' was not declared in this scope
23 | dps[i][i] = piles[i];
| ^~~
0_0_38888067_15835.cpp:32:25: error: 'dps' was not declared in this scope
32 | dps[j][d + j] = max(piles[j] - dps[j + 1][d + j], piles[d + j] - dps[j][d + j - 1]);
| ^~~
0_0_38888067_15835.cpp:32:41: error: 'max' was not declared in this scope
32 | dps[j][d + j] = max(piles[j] - dps[j + 1][d + j], piles[d + j] - dps[j][d + j - 1]);
| ^~~
0_0_38888067_15835.cpp:35:16: error: 'dps' was not declared in this scope
35 | return dps[0][n - 1]>0;
| ^~~
|