foo.c: In function 'main':
foo.c:18:13: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Wformat=]
    printf("%d", x);
            ~^
            %ld
foo.c:63:24: warning: unused variable 't' [-Wunused-variable]
    int num[N3], g[N3], t = 0;
                        ^
foo.c:63:17: warning: unused variable 'g' [-Wunused-variable]
    int num[N3], g[N3], t = 0;
                 ^
foo.c:63:8: warning: unused variable 'num' [-Wunused-variable]
    int num[N3], g[N3], t = 0;
        ^~~
foo.c:9:10: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
  long x; scanf("%ld", &x);
          ^~~~~~~~~~~~~~~~
   
  
    [Hydro](https://hydro.ac)提供评测服务