سلام من سورس کد اجرایی الگوریتم های زمانبندی سیستم عامل رو میخوام به زبان سی بعضی کدها رو دارم اما در محیط اجرا نمیشه ممنون میشم کمکم کنید در ضمن یه توضیح کوچولوم میخوام ....

#include<iostream.h>
#include<conio.h>
int main()
{
int i,n,s,j,y,x,a[10],b[10],w[10];
float aw=0.0;
cout<<"\n\n""enter the number of job : ";
cin>>y;
for(s=0;s<y;s++)
{
cout<<"\n""\n""enter the burst time for job "<<s+1 <<": ";
cin>>b
;
cout<<"\n""arrived time for job "<<s+1 <<": ";
cin>>a;
}
for (i=0;i<y-1;i++)
for (j=0;j<y-i-1;j++)
if (a[j]>a[j+1])
{
int temp[2];
temp[0]=a[j];
temp[1]=b[j];
a[j]=a[j+1];
b[j]=b[j+1];
a[j+1]=temp[0];
b[j+1]=temp[1];
}
i=0;
j=0;
cout<<"\n""\n""\n""job""\t"<<"arrived time""\t"<<"burst time""\t"<<"wait time\n";
w[0]=0;
for(i=1;i<y;i++)
{
x=0;
for(j=0;j<i;j++)
x+=b[j];
w=x-a;
if(w<0)w=0;
}
int row=26;
for(i=0;i<y;i++)
{
gotoxy(1,row+i);
cout<<i+1;
gotoxy(13,row+i);
cout<<a;
gotoxy(30,row+i);
cout<<b;
gotoxy(46,row+i);
cout<<w;
}
for(i=0;i<y;i++)
aw+=w;
aw/=y;
cout<<"\n""\n""average of the wait time : "<<aw;
return 0;
}