F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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);
        ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-05-19 20:10:18, Gzip enabled