Problem catlunch
User gohchingjayk
Submission Time 2024-11-30 16:18:59
Score 0
Max Time N/A
Max Memory N/A

Compile Error

catlunch.cpp: In function ‘int main()’:
catlunch.cpp:11:45: error: type/value mismatch at argument 3 in template parameter list for ‘template<class _Tp, class _Sequence, class _Compare> class std::priority_queue’
11 | priority_queue<vector<int>, int, greater> T;
| ^
catlunch.cpp:11:45: note: expected a type, got ‘greater’
catlunch.cpp:17:11: error: request for member ‘emplace’ in ‘T’, which is of non-class type ‘int’
17 | T.emplace(T_i);
| ^~~~~~~
catlunch.cpp:23:17: error: request for member ‘top’ in ‘T’, which is of non-class type ‘int’
23 | curr_sum += T.top();
| ^~~
catlunch.cpp:24:5: error: request for member ‘pop’ in ‘T’, which is of non-class type ‘int’
24 | T.pop();
| ^~~
catlunch.cpp:25:5: error: request for member ‘emplace’ in ‘T’, which is of non-class type ‘int’
25 | T.emplace(T_i)