Problem | catlunch |
---|---|
User | gohchingjayk |
Submission Time | 2024-11-30 16:18:38 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
catlunch.cpp: In function ‘int main()’:
catlunch.cpp:11:50: 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<int, vector<int>, std::greater> T;
| ^
catlunch.cpp:11:50: 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.em