0_0_36418006_13746.cpp: In function 'int main()':
0_0_36418006_13746.cpp:18:21: error: invalid types 'int[int]' for array subscript
scanf("%d%d",&a[i],&b[i]);
^
0_0_36418006_13746.cpp:18:27: error: invalid types 'int[int]' for array subscript
scanf("%d%d",&a[i],&b[i]);
^
0_0_36418006_13746.cpp:24:15: error: invalid types 'int[int]' for array subscript
if(j==a[i]){
^
0_0_36418006_13746.cpp:25:16: error: invalid types 'int[int]' for array subscript
x1=jh[a[i]];
^
0_0_36418006_13746.cpp:26:16: error: invalid types 'int[int]' for array subscript
x2=jh[a[i]]+1;
^
0_0_36418006_13746.cpp:28:20: error: invalid types 'int[int]' for array subscript
else if(j==b[i]){
^
0_0_36418006_13746.cpp:29:16: error: invalid types 'int[int]' for array subscript
y1=jh[b[i]];
^
0_0_36418006_13746.cpp:30:16: error: invalid types 'int[int]' for array subscript
y2=jh[b[i]]+1;
^
0_0_36418006_13746.cpp:34:10: error: invalid types 'int[int]' for array subscript
jh[a[i]]=min(x2,y1);
^
0_0_36418006_13746.cpp:35:10: error: invalid types 'int[int]' for array subscript
jh[b[i]]=min(x1,y2);
^
|