0_0_35023823_10003.c: In function 'main':
0_0_35023823_10003.c:8:3: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int i = 0; i < n; i++)
^
0_0_35023823_10003.c:8:3: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
0_0_35023823_10003.c:9:4: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int j = 0; j < m; j++)
^
0_0_35023823_10003.c:10:31: error: expected expression before '/' token
scanf("%d", &score[i][j]);//录入n个学生的m门成绩
^
0_0_35023823_10003.c:10:31: error: stray '\302' in program
0_0_35023823_10003.c:10:31: error: stray '\274' in program
0_0_35023823_10003.c:10:31: error: stray '\310' in program
0_0_35023823_10003.c:10:31: error: stray '\353' in program
0_0_35023823_10003.c:10:31: error: stray '\270' in program
0_0_35023823_10003.c:10:31: error: stray '\366' in program
0_0_35023823_10003.c:10:31: error: stray '\321' in program
0_0_35023823_10003.c:10:31: error: stray '\247' in program
0_0_35023823_10003.c:10:31: error: stray '\311' in program
0_0_35023823_10003.c:10:31: error: stray '\372' in program
0_0_35023823_10003.c:10:31: error: stray '\265' in program
0_0_35023823_10003.c:10:31: error: stray '\304' in program
0_0_35023823_10003.c:10:31: error: stray '\303' in program
0_0_35023823_10003.c:10:31: error: stray '\305' in program
0_0_35023823_10003.c:10:31: error: stray '\263' in program
0_0_35023823_10003.c:10:31: error: stray '\311' in program
0_0_35023823_10003.c:10:31: error: stray '\274' in program
0_0_35023823_10003.c:10:31: error: stray '\250' in program
0_0_35023823_10003.c:21:5: error: stray '\313' in program
//算出每个学生的平均成绩
^
0_0_35023823_10003.c:21:5: error: stray '\343' in program
0_0_35023823_10003.c:21:5: error: stray '\263' in program
0_0_35023823_10003.c:21:5: error: stray '\366' in program
0_0_35023823_10003.c:21:5: error: stray '\303' in program
0_0_35023823_10003.c:21:5: error: stray '\277' in program
0_0_35023823_10003.c:21:5: error: stray '\270' in program
0_0_35023823_10003.c:21:5: error: stray '\366' in program
0_0_35023823_10003.c:21:5: error: stray '\321' in program
0_0_35023823_10003.c:21:5: error: stray '\247' in program
0_0_35023823_10003.c:21:5: error: stray '\311' in program
0_0_35023823_10003.c:21:5: error: stray '\372' in program
0_0_35023823_10003.c:21:5: error: stray '\265' in program
0_0_35023823_10003.c:21:5: error: stray '\304' in program
0_0_35023823_10003.c:21:5: error: stray '\306' in program
0_0_35023823_10003.c:21:5: error: stray '\275' in program
0_0_35023823_10003.c:21:5: error: stray '\276' in program
0_0_35023823_10003.c:21:5: error: stray '\371' in program
0_0_35023823_10003.c:21:5: error: stray '\263' in program
0_0_35023823_10003.c:21:5: error: stray '\311' in program
0_0_35023823_10003.c:21:5: error: stray '\274' in program
0_0_35023823_10003.c:21:5: error: stray '\250' in program
0_0_35023823_10003.c:23:12: error: redefinition of 'j'
for (int j = 0; j < m; j++){
^
0_0_35023823_10003.c:9:13: note: previous definition of 'j' was here
for (int j = 0; j < m; j++)
^
0_0_35023823_10003.c:23:3: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int j = 0; j < m; j++){
^
0_0_35023823_10003.c:26:4: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int i = 0; i < n; i++){
^
0_0_35023823_10003.c:30:17: error: 's' undeclared (first use in this function)
s[j]=avg_sub;
^
0_0_35023823_10003.c:30:17: note: each undeclared identifier is reported only once for each function it appears in
0_0_35023823_10003.c:32:42: error: expected expression before '/' token
printf("%.2lf", avg_sub);//每门课的平均成绩
^
0_0_35023823_10003.c:32:42: error: stray '\303' in program
0_0_35023823_10003.c:32:42: error: stray '\277' in program
0_0_35023823_10003.c:32:42: error: stray '\303' in program
0_0_35023823_10003.c:32:42: error: stray '\305' in program
0_0_35023823_10003.c:32:42: error: stray '\277' in program
0_0_35023823_10003.c:32:42: error: stray '\316' in program
0_0_35023823_10003.c:32:42: error: stray '\265' in program
0_0_35023823_10003.c:32:42: error: stray '\304' in program
0_0_35023823_10003.c:32:42: error: stray '\306' in program
0_0_35023823_10003.c:32:42: error: stray '\275' in program
0_0_35023823_10003.c:32:42: error: stray '\276' in program
0_0_35023823_10003.c:32:42: error: stray '\371' in program
0_0_35023823_10003.c:32:42: error: stray '\263' in program
0_0_35023823_10003.c:32:42: error: stray '\311' in program
0_0_35023823_10003.c:32:42: error: stray '\274' in program
0_0_35023823_10003.c:32:42: error: stray '\250' in program
0_0_35023823_10003.c:34:4: error: 'else' without a previous 'if'
else printf(" ");
^
0_0_35023823_10003.c:37:4: error: expected expression before '/' token
//printf("\n");//每门课的平均成绩
^
0_0_35023823_10003.c:37:19: error: expected expression before '/' token
//printf("\n");//每门课的平均成绩
^
0_0_35023823_10003.c:37:19: error: stray '\303' in program
0_0_35023823_10003.c:37:19: error: stray '\277' in program
0_0_35023823_10003.c:37:19: error: stray '\303' in program
0_0_35023823_10003.c:37:19: error: stray '\305' in program
0_0_35023823_10003.c:37:19: error: stray '\277' in program
0_0_35023823_10003.c:37:19: error: stray '\316' in program
0_0_35023823_10003.c:37:19: error: stray '\265' in program
0_0_35023823_10003.c:37:19: error: stray '\304' in program
0_0_35023823_10003.c:37:19: error: stray '\306' in program
0_0_35023823_10003.c:37:19: error: stray '\275' in program
0_0_35023823_10003.c:37:19: error: stray '\276' in program
0_0_35023823_10003.c:37:19: error: stray '\371' in program
0_0_35023823_10003.c:37:19: error: stray '\263' in program
0_0_35023823_10003.c:37:19: error: stray '\311' in program
0_0_35023823_10003.c:37:19: error: stray '\274' in program
0_0_35023823_10003.c:37:19: error: stray '\250' in program
0_0_35023823_10003.c:40:10: error: redefinition of 'i'
for(int i = 0;i < n;i++){
^
0_0_35023823_10003.c:8:12: note: previous definition of 'i' was here
for (int i = 0; i < n; i++)
^
0_0_35023823_10003.c:40:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int i = 0;i < n;i++){
^
0_0_35023823_10003.c:42:3: error: expected expression before '/' token
//printf("及格人数测试前=%d\n",all);
^
0_0_35023823_10003.c:43:3: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int j = 0;j < m;j++){
^
0_0_35023823_10003.c:44:28: error: expected expression before '/' token
if(score[i][j] < s[j]){ //检索学生成绩,只要有一门小于平均成绩,都不会记录
^
0_0_35023823_10003.c:44:28: error: stray '\274' in program
0_0_35023823_10003.c:44:28: error: stray '\354' in program
0_0_35023823_10003.c:44:28: error: stray '\313' in program
0_0_35023823_10003.c:44:28: error: stray '\367' in program
0_0_35023823_10003.c:44:28: error: stray '\321' in program
0_0_35023823_10003.c:44:28: error: stray '\247' in program
0_0_35023823_10003.c:44:28: error: stray '\311' in program
0_0_35023823_10003.c:44:28: error: stray '\372' in program
0_0_35023823_10003.c:44:28: error: stray '\263' in program
0_0_35023823_10003.c:44:28: error: stray '\311' in program
0_0_35023823_10003.c:44:28: error: stray '\274' in program
0_0_35023823_10003.c:44:28: error: stray '\250' in program
0_0_35023823_10003.c:44:28: error: stray '\243' in program
0_0_35023823_10003.c:44:28: error: stray '\254' in program
0_0_35023823_10003.c:44:28: error: stray '\326' in program
0_0_35023823_10003.c:44:28: error: stray '\273' in program
0_0_35023823_10003.c:44:28: error: stray '\322' in program
0_0_35023823_10003.c:44:28: error: stray '\252' in program
0_0_35023823_10003.c:44:28: error: stray '\323' in program
0_0_35023823_10003.c:44:28: error: stray '\320' in program
0_0_35023823_10003.c:44:28: error: stray '\322' in program
0_0_35023823_10003.c:44:28: error: stray '\273' in program
0_0_35023823_10003.c:44:28: error: stray '\303' in program
0_0_35023823_10003.c:44:28: error: stray '\305' in program
0_0_35023823_10003.c:44:28: error: stray '\320' in program
0_0_35023823_10003.c:44:28: error: stray '\241' in program
0_0_35023823_10003.c:44:28: error: stray '\323' in program
0_0_35023823_10003.c:44:28: error: stray '\332' in program
0_0_35023823_10003.c:44:28: error: stray '\306' in program
0_0_35023823_10003.c:44:28: error: stray '\275' in program
0_0_35023823_10003.c:44:28: error: stray '\276' in program
0_0_35023823_10003.c:44:28: error: stray '\371' in program
0_0_35023823_10003.c:44:28: error: stray '\263' in program
0_0_35023823_10003.c:44:28: error: stray '\311' in program
0_0_35023823_10003.c:44:28: error: stray '\274' in program
0_0_35023823_10003.c:44:28: error: stray '\250' in program
0_0_35023823_10003.c:
|