worst_reporter2.cpp: In function 'int main()':
worst_reporter2.cpp:8:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%i",&n);
~~~~~^~~~~~~~~
worst_reporter2.cpp:9:29: 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("%i %i",&a[i],&b[i]);
~~~~~^~~~~~~~~~~~~~~~~~~~~
worst_reporter2.cpp:10:29: 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("%i %i",&c[i],&d[i]);
~~~~~^~~~~~~~~~~~~~~~~~~~~