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_31650802_22004.cpp: In function 'int main()':
0_0_31650802_22004.cpp:18:11: error: 'air' does not name a type
   air=new air[m];
           ^
0_0_31650802_22004.cpp:22:16: error: request for member 'A' in '*(air + ((sizetype)(((long long unsigned int)i) * 4ull)))', which is of non-class type 'int'
    cin>>air[i].A>>air[i].H;
                ^
0_0_31650802_22004.cpp:22:26: error: request for member 'H' in '*(air + ((sizetype)(((long long unsigned int)i) * 4ull)))', which is of non-class type 'int'
    cin>>air[i].A>>air[i].H;
                          ^
0_0_31650802_22004.cpp:27:15: error: request for member 'A' in '*(air + ((sizetype)(((long long unsigned int)i) * 4ull)))', which is of non-class type 'int'
     if(air[i].A==-1) continue;
               ^
0_0_31650802_22004.cpp:30:16: error: request for member 'A' in '*(air + ((sizetype)(((long long unsigned int)j) * 4ull)))', which is of non-class type 'int'
      if(air[j].A>=0)
                ^
0_0_31650802_22004.cpp:32:25: error: request for member 'H' in '*(air + ((sizetype)(((long long unsigned int)i) * 4ull)))', which is of non-class type 'int'
       if(sni[j]<=air[i].H)
                         ^
0_0_31650802_22004.cpp:35:15: error: request for member 'A' in '*(air + ((sizetype)(((long long unsigned int)i) * 4ull)))', which is of non-class type 'int'
        air[i].A=-1;
               ^
0_0_31650802_22004.cpp:40:15: error: request for member 'A' in '*(air + ((sizetype)(((long long unsigned int)i) * 4ull)))', which is of non-class type 'int'
     if(air[i].A>0)
               ^
0_0_31650802_22004.cpp:42:19: error: request for member 'A' in '*(air + ((sizetype)(((long long unsigned int)i) * 4ull)))', which is of non-class type 'int'
     elseif(air[i].A==0 && air[i].H>0)
                   ^
0_0_31650802_22004.cpp:42:34: error: request for member 'H' in '*(air + ((sizetype)(((long long unsigned int)i) * 4ull)))', which is of non-class type 'int'
     elseif(air[i].A==0 && air[i].H>0)
                                  ^
0_0_31650802_22004.cpp:42:37: error: 'elseif' was not declared in this scope
     elseif(air[i].A==0 && air[i].H>0)
                                     ^
0_0_31650802_22004.cpp:44:15: error: request for member 'H' in '*(air + ((sizetype)(((long long unsigned int)i) * 4ull)))', which is of non-class type 'int'
     if(air[i].H==0)
               ^
0_0_31650802_22004.cpp:46:13: error: request for member 'A' in '*(air + ((sizetype)(((long long unsigned int)i) * 4ull)))', which is of non-class type 'int'
      air[i].A=-1;
             ^


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-11-30 00:10:12, Gzip enabled