0_0_23804388_21409.cpp: In function 'int change(int*, int, int, int*, int, int)':
0_0_23804388_21409.cpp:4:19: error: 'n' was not declared in this scope
for(int i=0;i<n;i++)if(b[i]==a[astart])break;
^
0_0_23804388_21409.cpp:5:19: error: 'n' was not declared in this scope
for(int j=0;j<n;j++)if(a[j]==b[i-1])break;
^
0_0_23804388_21409.cpp:5:36: error: 'i' was not declared in this scope
for(int j=0;j<n;j++)if(a[j]==b[i-1])break;
^
0_0_23804388_21409.cpp:6:18: error: 'i' was not declared in this scope
if(astart+1<=i&&i+1<=bend)
^
0_0_23804388_21409.cpp:7:23: error: 'j' was not declared in this scope
change(a,astart+1,j,b,bstart,i-1);
^
0_0_23804388_21409.cpp:8:16: error: 'i' was not declared in this scope
if(bstart<=i-1&&i+1<=aend)
^
0_0_23804388_21409.cpp:9:14: error: 'j' was not declared in this scope
change(a,j+1,aend,b,i+1,bend);
^
0_0_23804388_21409.cpp: In function 'int main()':
0_0_23804388_21409.cpp:19:9: error: 'i' was not declared in this scope
for(i=0;i<n;i++)scanf("%d",&b[i]);
^
|