bridge.cpp: In function 'int main()':
bridge.cpp:39:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<unq.size();i++)
~^~~~~~~~~~~
bridge.cpp:42:10: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(j<events.size() && events[j]==mp(x,0)) L--,ls-=x,j++;
~^~~~~~~~~~~~~~
bridge.cpp:44:10: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(j<events.size() && events[j]==mp(x,1)) R++,rs+=x,j++;
~^~~~~~~~~~~~~~
bridge.cpp:12:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%i %i",&k,&n);
~~~~~^~~~~~~~~~~~~~~
bridge.cpp:21:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("\n%c %i %c %i",&a,&l[i],&b,&r[i]);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~