foo.cc: In function 'int main()':
foo.cc:11:22: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
   11 |         for(int j=1;j<=n;j++)
      |                     ~^~~
foo.cc:5:34: warning: unused variable 'cnt' [-Wunused-variable]
    5 |     unsigned int a[]={0},b[]={0},cnt=0,n,i;
      |                                  ^~~
foo.cc:13:18: warning: array subscript 1 is above array bounds of 'unsigned int [1]' [-Warray-bounds]
   13 |         while(a[j]!=0)
      |               ~~~^
foo.cc:5:18: note: while referencing 'a'
    5 |     unsigned int a[]={0},b[]={0},cnt=0,n,i;
      |                  ^
foo.cc:15:18: warning: array subscript 1 is above array bounds of 'unsigned int [1]' [-Warray-bounds]
   15 |         a[j]+=b[j];
      |               ~~~^
foo.cc:5:26: note: while referencing 'b'
    5 |     unsigned int a[]={0},b[]={0},cnt=0,n,i;
      |                          ^
foo.cc:15:13: warning: array subscript 1 is above array bounds of 'unsigned int [1]' [-Warray-bounds]
   15 |         a[j]+=b[j];
      |         ~~~~^~~~~~
foo.cc:5:18: note: while referencing 'a'
    5 |     unsigned int a[]={0},b[]={0},cnt=0,n,i;
      |                  ^
foo.cc:19:20: warning: array subscript 1 is above array bounds of 'unsigned int [1]' [-Warray-bounds]
   19 |                 a[j]=0;
      |                 ~~~^
foo.cc:5:18: note: while referencing 'a'
    5 |     unsigned int a[]={0},b[]={0},cnt=0,n,i;
      |                  ^
foo.cc:21:15: warning: array subscript 1 is above array bounds of 'unsigned int [1]' [-Warray-bounds]
   21 |         if(b[j]>0&&a[j]>0)
      |            ~~~^
foo.cc:5:26: note: while referencing 'b'
    5 |     unsigned int a[]={0},b[]={0},cnt=0,n,i;
      |                          ^
foo.cc:21:23: warning: array subscript 1 is above array bounds of 'unsigned int [1]' [-Warray-bounds]
   21 |         if(b[j]>0&&a[j]>0)
      |                    ~~~^
foo.cc:5:18: note: while referencing 'a'
    5 |     unsigned int a[]={0},b[]={0},cnt=0,n,i;
      |                  ^
foo.cc:24:20: warning: array subscript 1 is above array bounds of 'unsigned int [1]' [-Warray-bounds]
   24 |                 a[j]=0;
      |                 ~~~^
foo.cc:5:18: note: while referencing 'a'
    5 |     unsigned int a[]={0},b[]={0},cnt=0,n,i;
      |                  ^
foo.cc:33:23: warning: array subscript 1 is above array bounds of 'unsigned int [1]' [-Warray-bounds]
   33 |                 if(a[j]%b[j]==0||a[j]%c[j]==0)
      |                    ~~~^
foo.cc:5:18: note: while referencing 'a'
    5 |     unsigned int a[]={0},b[]={0},cnt=0,n,i;
      |                  ^
foo.cc:33:28: warning: array subscript 1 is above array bounds of 'unsigned int [1]' [-Warray-bounds]
   33 |                 if(a[j]%b[j]==0||a[j]%c[j]==0)
      |                         ~~~^
foo.cc:5:26: note: while referencing 'b'
    5 |     unsigned int a[]={0},b[]={0},cnt=0,n,i;
      |                          ^
foo.cc:39:20: warning: array subscript 1 is above array bounds of 'unsigned int [1]' [-Warray-bounds]
   39 |                 a[j]=0;}
      |                 ~~~^
foo.cc:5:18: note: while referencing 'a'
    5 |     unsigned int a[]={0},b[]={0},cnt=0,n,i;
      |                  ^
foo.cc:35:20: warning: array subscript 1 is above array bounds of 'unsigned int [1]' [-Warray-bounds]
   35 |                 a[j]=0; }
      |                 ~~~^
foo.cc:5:18: note: while referencing 'a'
    5 |     unsigned int a[]={0},b[]={0},cnt=0,n,i;
      |                  ^
   
  
    [Hydro](https://hydro.ac)提供评测服务