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_17532599_12941.cpp:3:8: error: 'struct std' redeclared as different kind of symbol
 struct std{
        ^
<built-in>: note: previous declaration 'namespace std { }'
0_0_17532599_12941.cpp:6:8: error: invalid type in declaration before ';' token
 }a[100];
        ^
0_0_17532599_12941.cpp: In function 'int main()':
0_0_17532599_12941.cpp:9:13: error: aggregate 'main()::std temp' has incomplete type and cannot be defined
  struct std temp; 
             ^
0_0_17532599_12941.cpp:14:23: error: request for member 'ts' in 'a[i]', which is of non-class type 'int'
    scanf("%d%d",&a[i].ts,&a[i].te);
                       ^
0_0_17532599_12941.cpp:14:32: error: request for member 'te' in 'a[i]', which is of non-class type 'int'
    scanf("%d%d",&a[i].ts,&a[i].te);
                                ^
0_0_17532599_12941.cpp:17:13: error: request for member 'te' in 'a[j]', which is of non-class type 'int'
     if(a[j].te>a[j+i].te)
             ^
0_0_17532599_12941.cpp:17:23: error: request for member 'te' in 'a[(j + i)]', which is of non-class type 'int'
     if(a[j].te>a[j+i].te)
                       ^
0_0_17532599_12941.cpp:23:16: error: request for member 'te' in 'a[0]', which is of non-class type 'int'
   temp.te=a[0].te;
                ^
0_0_17532599_12941.cpp:26:12: error: request for member 'ts' in 'a[i]', which is of non-class type 'int'
    if(a[i].ts>=temp.te)
            ^
0_0_17532599_12941.cpp:29:18: error: request for member 'te' in 'a[i]', which is of non-class type 'int'
     temp.te=a[i].te;
                  ^


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-12-04 22:21:53, Gzip enabled