hill.cpp:52:36: error: 'function' was not declared in this scope
priority_queue<Hill, vector<Hill>, function<bool(Hill, Hill)> > q(Comp);
^~~~~~~~
hill.cpp:52:36: note: suggested alternative: 'union'
priority_queue<Hill, vector<Hill>, function<bool(Hill, Hill)> > q(Comp);
^~~~~~~~
union
hill.cpp:52:60: error: expression list treated as compound expression in functional cast [-fpermissive]
priority_queue<Hill, vector<Hill>, function<bool(Hill, Hill)> > q(Comp);
^
hill.cpp:52:61: error: template argument 3 is invalid
priority_queue<Hill, vector<Hill>, function<bool(Hill, Hill)> > q(Comp);
^
hill.cpp:52:63: error: expected unqualified-id before '>' token
priority_queue<Hill, vector<Hill>, function<bool(Hill, Hill)> > q(Comp);
^
hill.cpp: In function 'int main()':
hill.cpp:63:3: error: 'q' was not declared in this scope
q.push(temp);
^
hill.cpp:67:22: error: 'q' was not declared in this scope
while(siment > 0 && q.size() > 1){
^
hill.cpp:83:16: error: 'q' was not declared in this scope
auto result = q.top();
^
hill.cpp:56:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &n, &si);
~~~~~^~~~~~~~~~~~~~~~~
hill.cpp:58:31: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for(int i=1; i<=n; i++) scanf("%d", &arr[i].x);
~~~~~^~~~~~~~~~~~~~~~~
hill.cpp:59:31: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for(int i=1; i<=n; i++) scanf("%d", &arr[i].y);
~~~~~^~~~~~~~~~~~~~~~~