foo.cc: In function 'int main()':
foo.cc:24:11: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'int' [-Wformat=]
   24 |   scanf("%d%d%d",n,l,k);
      |          ~^      ~
      |           |      |
      |           int*   int
foo.cc:24:13: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'int' [-Wformat=]
   24 |   scanf("%d%d%d",n,l,k);
      |            ~^      ~
      |             |      |
      |             int*   int
foo.cc:24:15: warning: format '%d' expects argument of type 'int*', but argument 4 has type 'int' [-Wformat=]
   24 |   scanf("%d%d%d",n,l,k);
      |              ~^      ~
      |               |      |
      |               int*   int
foo.cc:27:12: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'int' [-Wformat=]
   27 |    scanf("%d",a[i].wz);
      |           ~^  ~~~~~~~
      |            |       |
      |            int*    int
foo.cc:32:12: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'int' [-Wformat=]
   32 |    scanf("%d",a[i].jz);
      |           ~^  ~~~~~~~
      |            |       |
      |            int*    int
foo.cc:16:9: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
   16 |  freopen("gem.in","r",stdin);
      |  ~~~~~~~^~~~~~~~~~~~~~~~~~~~
foo.cc:17:9: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
   17 |  freopen("gem.out","w",stdout);
      |  ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
foo.cc:21:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   21 |  scanf("%d",&t);
      |  ~~~~~^~~~~~~~~
foo.cc:24:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   24 |   scanf("%d%d%d",n,l,k);
      |   ~~~~~^~~~~~~~~~~~~~~~
foo.cc:27:9: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   27 |    scanf("%d",a[i].wz);
      |    ~~~~~^~~~~~~~~~~~~~
foo.cc:32:9: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   32 |    scanf("%d",a[i].jz);
      |    ~~~~~^~~~~~~~~~~~~~
   
  
    Found 10 testcases.
[Hydro](https://hydro.ac)提供评测服务