Problem | GSS |
---|---|
User | Logout |
Submission Time | 2023-11-09 12:11:32 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
GSS.cpp: In function ‘int main()’:
GSS.cpp:16:22: error: no match for ‘operator[]’ (operand types are ‘std::priority_queue<long long int, std::vector<long long int>, std::greater<long long int> >’ and ‘int’)
16 | cost = all_costs[i] + all_costs[i + 1] + all_costs[i + 2];
| ^
GSS.cpp:16:37: error: no match for ‘operator[]’ (operand types are ‘std::priority_queue<long long int, std::vector<long long int>, std::greater<long long int> >’ and ‘int’)
16 | cost = all_costs[i] + all_costs[i + 1] + all_costs[i + 2];
| ^
GSS.cpp:16:56: error: no match for ‘operator[]’ (operand types are ‘std::priority_queue<long long int, std::vector<long long int>, std::greater<long long int> >’ and ‘int’)
16 | cost = all_costs[i] + all_costs[i + 1] + all_costs[i + 2];
| ^