Problem | attractions |
---|---|
User | PlayVoltz |
Submission Time | 2023-12-30 07:52:19 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
attractions.cpp: In function ‘int32_t main()’:
attractions.cpp:27:34: error: two or more data types in declaration of ‘type name’
27 | priority_queue<int, vector<int> greater<int> > small;
| ^~~~~~~~~~~~
attractions.cpp:27:47: error: template argument 2 is invalid
27 | priority_queue<int, vector<int> greater<int> > small;
| ^
attractions.cpp:27:47: error: template argument 3 is invalid
attractions.cpp:28:52: error: request for member ‘push’ in ‘small’, which is of non-class type ‘int’
28 | for (int i=0; i<n; ++i)cin>>a, big.push(a), small.push(a);
| ^~~~
attractions.cpp:32:13: error: request for member ‘top’ in ‘small’, which is of non-class type ‘int’
32 | k-=small.top();
| ^~~
attractions.cpp:33:14: error: request for