0_0_35819233_26940.cpp: In function 'bool cmp(const Student&, Student&)':
0_0_35819233_26940.cpp:12:66: error: 'const struct Student' has no member named 'id'
return a.scores != b.scores ? a.scores > b.scores : strcmp(a.id, b.id) < 0;
^
0_0_35819233_26940.cpp:12:72: error: 'struct Student' has no member named 'id'
return a.scores != b.scores ? a.scores > b.scores : strcmp(a.id, b.id) < 0;
^
0_0_35819233_26940.cpp: In function 'int main()':
0_0_35819233_26940.cpp:25:32: error: 'struct Student' has no member named 'id'
scanf("%s%d", s[i].id, &s[i].m);
^
0_0_35819233_26940.cpp:47:40: error: 'struct Student' has no member named 'id'
printf("%s %d\n", s[i].id, s[i].scores);
^
|