foo.cc: In function 'int main()':
foo.cc:18:28: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'int' [-Wformat=]
scanf("%d%d",a[i].i,a[i].l);
~~~~~~ ^
foo.cc:18:28: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'int' [-Wformat=]
foo.cc:16:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
~~~~~^~~~~~~~~
foo.cc:18:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",a[i].i,a[i].l);
~~~~~^~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务