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