Problem GSS
User Logout
Submission Time 2023-11-09 12:10:24
Score 0
Max Time N/A
Max Memory N/A

Compile Error

GSS.cpp:6:44: error: no type named ‘value_type’ in ‘struct std::greater<long long int>’
6 | priority_queue<long long, greater<long long>> all_costs;
| ^~
GSS.cpp:6:44: error: template argument 3 is invalid
GSS.cpp: In function ‘int main()’:
GSS.cpp:12:13: error: request for member ‘push’ in ‘all_costs’, which is of non-class type ‘int’
12 | all_costs.push(placeholder);
| ^~~~
GSS.cpp:15:16: error: request for member ‘pop’ in ‘all_costs’, which is of non-class type ‘int’
15 | all_costs.pop();
| ^~~
GSS.cpp:16:24: error: invalid types ‘int[int]’ for array subscript
16 | cost = all_costs[i] + all_costs[i + 1] + all_costs[i + 2];
| ^
GSS.cpp:16:43: error: invalid types ‘int[int]’ for array subscript
16 | cost = all_costs[i] + all_costs[i + 1] + all_costs[i + 2];
|