Compile Error

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)提供评测服务

信息

递交者
类型
递交
题目
P1335 巧妙填数
语言
C++
递交时间
2021-09-24 14:33:17
评测时间
2021-09-24 14:33:17
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes