Close ×

My Accounts

You´ not logged in.

About

P1001 谁拿了最多奖学金

Overview

Judge Result Compile Error
Problem P1001 谁拿了最多奖学金
Submit Time November 13, 2019, 8:25:02 AM
Language C
Judger Default Judger
Used Time 0 ms
Used Memory 0 K
Execute Time November 13, 2019, 8:24:53 AM

Judge Result

Compile Error. /tmp/voj-1415/AflRcdUMxKkJ.c: In function ‘main’: /tmp/voj-1415/AflRcdUMxKkJ.c:13:9: error: unknown type name ‘student’; use ‘struct’ keyword to refer to the type 13 | student a[100]; | ^~~~~~~ | struct /tmp/voj-1415/AflRcdUMxKkJ.c:17:44: error: request for member ‘name’ in something not a structure or union 17 | scanf("%s %d %d %c %c %d",&a[i].name,&a[i].finalScore,\ | ^ /tmp/voj-1415/AflRcdUMxKkJ.c:17:55: error: request for member ‘finalScore’ in something not a structure or union 17 | scanf("%s %d %d %c %c %d",&a[i].name,&a[i].finalScore,\ | ^ /tmp/voj-1415/AflRcdUMxKkJ.c:18:23: error: request for member ‘classScore’ in something not a structure or union 18 | &a[i].classScore,&a[i].stuOfficer,&a[i].fromWest,&a[i].paperNum);} | ^ /tmp/voj-1415/AflRcdUMxKkJ.c:18:40: error: request for member ‘stuOfficer’ in something not a structure or union 18 | &a[i].classScore,&a[i].stuOfficer,&a[i].fromWest,&a[i].paperNum);} | ^ /tmp/voj-1415/AflRcdUMxKkJ.c:18:57: error: request for member ‘fromWest’ in something not a structure or union 18 | &a[i].classScore,&a[i].stuOfficer,&a[i].fromWest,&a[i].paperNum);} | ^ /tmp/voj-1415/AflRcdUMxKkJ.c:18:72: error: request for member ‘paperNum’ in something not a structure or union 18 | &a[i].classScore,&a[i].stuOfficer,&a[i].fromWest,&a[i].paperNum);} | ^ /tmp/voj-1415/AflRcdUMxKkJ.c:24:20: error: request for member ‘paperNum’ in something not a structure or union 24 | if(a[i].paperNum>=1&a[i].finalScore>80) money[i]+=8000; | ^ /tmp/voj-1415/AflRcdUMxKkJ.c:24:37: error: request for member ‘finalScore’ in something not a structure or union 24 | if(a[i].paperNum>=1&a[i].finalScore>80) money[i]+=8000; | ^ /tmp/voj-1415/AflRcdUMxKkJ.c:25:20: error: request for member ‘finalScore’ in something not a structure or union 25 | if(a[i].finalScore>85&a[i].classScore>80) money[i]+=4000; | ^ /tmp/voj-1415/AflRcdUMxKkJ.c:25:39: error: request for member ‘classScore’ in something not a structure or union 25 | if(a[i].finalScore>85&a[i].classScore>80) money[i]+=4000; | ^ /tmp/voj-1415/AflRcdUMxKkJ.c:26:20: error: request for member ‘finalScore’ in something not a structure or union 26 | if(a[i].finalScore>90) money[i]+=2000; | ^ /tmp/voj-1415/AflRcdUMxKkJ.c:27:20: error: request for member ‘finalScore’ in something not a structure or union 27 | if(a[i].finalScore>85&a[i].fromWest=='Y') money[i]+=1000; | ^ /tmp/voj-1415/AflRcdUMxKkJ.c:27:39: error: request for member ‘fromWest’ in something not a structure or union 27 | if(a[i].finalScore>85&a[i].fromWest=='Y') money[i]+=1000; | ^ /tmp/voj-1415/AflRcdUMxKkJ.c:28:20: error: request for member ‘finalScore’ in something not a structure or union 28 | if(a[i].finalScore>80&a[i].stuOfficer=='Y') money[i]+=850; | ^ /tmp/voj-1415/AflRcdUMxKkJ.c:28:39: error: request for member ‘stuOfficer’ in something not a structure or union 28 | if(a[i].finalScore>80&a[i].stuOfficer=='Y') money[i]+=850; | ^ /tmp/voj-1415/AflRcdUMxKkJ.c:33:35: error: request for member ‘name’ in something not a structure or union 33 | printf("%s\n%d\n%d",a[max].name,money[max],sum); | ^ /tmp/voj-1415/AflRcdUMxKkJ.c:13:17: warning: variable ‘a’ set but not used [-Wunused-but-set-variable] 13 | student a[100]; | ^ Compile Error, Time = 0 ms, Memory = 0 KB, Score = 0.