tickets.cpp: In function 'long long int find_maximum(int, std::vector<std::vector<int> >)':
tickets.cpp:37:44: error: expected initializer before '.' token
37 | vector<vector<array<int, 2>>> valAndInd.resize(n, vector<array<int, 2>(m));
| ^
tickets.cpp:42:13: error: 'valAndInd' was not declared in this scope
42 | valAndInd[i][j] = {x[i][j], j};
| ^~~~~~~~~
tickets.cpp:45:38: error: 'valAndInd' was not declared in this scope
45 | for (int i = 0; i < n; i++) sort(valAndInd[i].begin(), valAndInd[i].end());
| ^~~~~~~~~
tickets.cpp:63:24: error: 'valAndInd' was not declared in this scope
63 | sum += valAndInd[i][j][0];
| ^~~~~~~~~
tickets.cpp:69:31: error: 'valAndInd' was not declared in this scope
69 | answer[i][valAndInd[i][j][1]] = turn;
| ^~~~~~~~~
tickets.cpp:77:31: error: 'valAndInd' was not declared in this scope
77 | answer[i][valAndInd[i][j][1]] = turn;
| ^~~~~~~~~
tickets.cpp:85:27: warning: left operand of comma operator has no effect [-Wunused-value]
85 | for (int i = 0; i < n, turn < k; i++)
| ~~^~~
tickets.cpp:87:31: warning: left operand of comma operator has no effect [-Wunused-value]
87 | for (int j = 0; j < m, turn < k; j++)
| ~~^~~