foo.cc: In function 'int main()':
foo.cc:10:7: error: invalid types 'int[int]' for array subscript
a[j]=0;
^
foo.cc:14:10: error: invalid types 'int[int]' for array subscript
a[a/100]++,a[a/10%10]++,a[a%100]++;
^
foo.cc:14:23: error: invalid types 'int[int]' for array subscript
a[a/100]++,a[a/10%10]++,a[a%100]++;
^
foo.cc:14:34: error: invalid types 'int[int]' for array subscript
a[a/100]++,a[a/10%10]++,a[a%100]++;
^
foo.cc:15:10: error: invalid types 'int[int]' for array subscript
a[b/100]++,a[b/10%10]++,a[b%100]++;
^
foo.cc:15:23: error: invalid types 'int[int]' for array subscript
a[b/100]++,a[b/10%10]++,a[b%100]++;
^
foo.cc:15:34: error: invalid types 'int[int]' for array subscript
a[b/100]++,a[b/10%10]++,a[b%100]++;
^
foo.cc:16:10: error: invalid types 'int[int]' for array subscript
a[c/100]++,a[c/10%10]++,a[c%100]++;
^
foo.cc:16:23: error: invalid types 'int[int]' for array subscript
a[c/100]++,a[c/10%10]++,a[c%100]++;
^
foo.cc:16:34: error: invalid types 'int[int]' for array subscript
a[c/100]++,a[c/10%10]++,a[c%100]++;
^
foo.cc:18:10: error: invalid types 'int[int]' for array subscript
if(a[j]==0)
^
foo.cc:6:12: warning: unused variable 'cnt' [-Wunused-variable]
int a,b,c,cnt=0;
^~~
[Hydro](https://hydro.ac)提供评测服务