C语言入门6-12综合练习 出现这个错误term does not evaluate to a function
#include<stdio.h> int main() { int num; double average; int score[10]={67,98,75,63,82,79,81,91,66,84}; num=score[0]+score[1]+score[2]+score[3]+score[4]+score[5]+score[6]+score[7]+score[8]+score[9]; average=num/10; printf("总分:num=%d\n",num); printf("平均分:average=%d\n",average); int i,j; for(i=8;i>=0;i--) { for(j=0;j<=i;j++) { if(score[j]<score[j+1]) { int a; a=score[j]; score[j]=score[j+1]; score[j+1]=a; } } } for(i=0;i<=9;i++) { printf("%d \n",score(i)); } printf("最高分:%d\n",score(0)); printf("最低分:%d\n",score(9)); return 0; }
这是我写的代码 可是放在VC6.0编译时 :
printf("最高分:%d\n",score(0));
printf("最高分:%d\n",score(0));
printf("最低分:%d\n",score(9));
这三句代码同时出现相同的错误:term does not evaluate to a function
我不知道怎么改 麻烦大神求解一下