edi.cpp: In member function 'bool upd::operator<(upd) const':
edi.cpp:10:62: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
bool operator < (upd o) const {return l > o.l || !(o.l > l) && t < o.t;}
~~~~~~~~~~~^~~~~~~~~~
edi.cpp: In function 'int main()':
edi.cpp:35:7: error: 'sort' is not a member of 'std'
std::sort(b, b+B);
^~~~
edi.cpp:35:7: note: suggested alternative: 'set'
std::sort(b, b+B);
^~~~
set
edi.cpp:26:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &N);
~~~~~^~~~~~~~~~
edi.cpp:28:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", a+i);
~~~~~^~~~~~~~~~~