0_0_38551445_24098.cpp:11:1: error: 'cls' does not name a type
cls test[x]={0};
^
0_0_38551445_24098.cpp:12:16: error: 'cls' does not name a type
bool cmp(const cls u,const cls v)
^
0_0_38551445_24098.cpp:12:28: error: 'cls' does not name a type
bool cmp(const cls u,const cls v)
^
0_0_38551445_24098.cpp: In function 'bool cmp(int, int)':
0_0_38551445_24098.cpp:14:14: error: request for member 'hour' in 'u', which is of non-class type 'const int'
return u.hour < v.hour;
^
0_0_38551445_24098.cpp:14:23: error: request for member 'hour' in 'v', which is of non-class type 'const int'
return u.hour < v.hour;
^
0_0_38551445_24098.cpp: In function 'int main()':
0_0_38551445_24098.cpp:26:22: error: 'test' was not declared in this scope
scanf("%d %d %d",&test[i].fuxi,&test[i].hour,&test[i].kaoshi);
^
0_0_38551445_24098.cpp:28:8: error: 'test' was not declared in this scope
sort(test,test+n,cmp);
^
|