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_29277279_6823.cpp:6:9: error: redeclaration of 'int& segment::nbsp'
     double s1,e1,s2,e2;
         ^
0_0_29277279_6823.cpp:6:2: note: previous declaration 'int& segment::nbsp'
     double s1,e1,s2,e2;
  ^
0_0_29277279_6823.cpp:8:14: error: use of deleted function 'segment::segment()'
 segment a[105];
              ^
0_0_29277279_6823.cpp:4:16: note: 'segment::segment()' is implicitly deleted because the default definition would be ill-formed:
 typedef struct segment
                ^
0_0_29277279_6823.cpp:4:16: error: uninitialized reference member in 'struct segment'
0_0_29277279_6823.cpp:6:2: note: 'int& segment::nbsp' should be initialized
     double s1,e1,s2,e2;
  ^
0_0_29277279_6823.cpp: In function 'int intersect(segment, segment)':
0_0_29277279_6823.cpp:12:2: error: 'nbsp' was not declared in this scope
     double x,y;
  ^
0_0_29277279_6823.cpp:17:15: error: 'else' without a previous 'if'
     else
               ^
0_0_29277279_6823.cpp: In function 'int main()':
0_0_29277279_6823.cpp:22:2: error: 'nbsp' was not declared in this scope
     int n,i,j,count;
  ^


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-07-05 14:48:21, Gzip enabled