In file included from /usr/include/c++/4.9/algorithm:61:0,
from skyline.cpp:2:
/usr/include/c++/4.9/bits/stl_algobase.h: In instantiation of ‘const _Tp& std::min(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int]’:
skyline.cpp:14:67: required from here
/usr/include/c++/4.9/bits/stl_algobase.h:243:26: error: ‘__comp’ cannot be used as a function
if (__comp(__b, __a))
^
skyline.cpp: In function ‘int main()’:
skyline.cpp:24:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^
skyline.cpp:26:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&a[i]);
^