0_0_16826809_20222.cpp: In function 'int main()':
0_0_16826809_20222.cpp:8:4: error: invalid types 'int[int]' for array subscript
a[0]=a[1]=1;
^
0_0_16826809_20222.cpp:8:9: error: invalid types 'int[int]' for array subscript
a[0]=a[1]=1;
^
0_0_16826809_20222.cpp:11:4: error: invalid types 'int[int]' for array subscript
a[i]=(a[i-2]*a+a[i-1]*b)%7;
^
0_0_16826809_20222.cpp:11:12: error: invalid types 'int[int]' for array subscript
a[i]=(a[i-2]*a+a[i-1]*b)%7;
^
0_0_16826809_20222.cpp:11:21: error: invalid types 'int[int]' for array subscript
a[i]=(a[i-2]*a+a[i-1]*b)%7;
^
0_0_16826809_20222.cpp:12:7: error: invalid types 'int[int]' for array subscript
if(a[i]==1&&a[i-1]==1) break;
^
0_0_16826809_20222.cpp:12:18: error: invalid types 'int[int]' for array subscript
if(a[i]==1&&a[i-1]==1) break;
^
0_0_16826809_20222.cpp:15:29: error: invalid types 'int[int]' for array subscript
if(n==0) printf("%d/n",a[i-2]);
^
0_0_16826809_20222.cpp:16:25: error: invalid types 'int[int]' for array subscript
else printf("%d/n",a[n-1];
^
|