求大神解释一下
#include <stdio.h>main()
{
int i,j;
int iTemp;
int iPos;
int a[]={8,10,6,5,7,9,2,4,1};
int sum=0;
for(i=0;i<10;i++)
{
iTemp=a[i];
iPos=i;
if(j=i+1;j<11;j++)
{
if(a[j]<iTemp)
{
iTemp=a[j];
iPos=j;
}
}
a[iPos]=a[i];
a[i]=iTemp;
}
for(i=0;i<10;i++)
{
printf("%d",a[i]);
}
for(i=0;i<10;i++)
{
if(a[i]%2!=0)
{
sum=sum+a[i];
printf("%d",a[i])
}
}
printf("奇数相加:%d",sum)
}
main.cpp: In function 'int main()':
main.cpp:14:12: error: expected ')' before ';' token
main.cpp:14:21: error: expected ';' before ')' token
main.cpp:38:1: error: expected '}' at end of input
main.cpp:38:1: error: expected '}' at end of input