/in/foo.c:3:17: error: expected ']' before ';' token
#define N 300000;
^
/in/foo.c:9:4: note: in expansion of macro 'N'
}a[N];
^
/in/foo.c:23:24: error: array type has incomplete element type 'struct yuan'
int result(struct yuan a[], int n){
^
/in/foo.c:23:19: warning: 'struct yuan' declared inside parameter list will not be visible outside of this definition or declaration
int result(struct yuan a[], int n){
^~~~
/in/foo.c: In function 'result':
/in/foo.c:30:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if(j>=n)
^~
/in/foo.c:32:4: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
while(a[i].right >= a[j].right){
^~~~~
/in/foo.c:34:35: error: expected ')' before '{' token
while(a[p].right >= a[j].right{ //这是寻找第一个左端点不同且在a[p]圆外的圆
^
/in/foo.c:51:3: error: expected expression before '}' token
}
^
/in/foo.c:25:18: warning: unused variable 'o' [-Wunused-variable]
int i, j, p, k, o;
^
/in/foo.c:25:15: warning: unused variable 'k' [-Wunused-variable]
int i, j, p, k, o;
^
/in/foo.c:25:12: warning: variable 'p' set but not used [-Wunused-but-set-variable]
int i, j, p, k, o;
^
/in/foo.c: In function 'main':
/in/foo.c:3:11: error: expected identifier or '(' before numeric constant
#define N 300000;
^
/in/foo.c:58:6: note: in expansion of macro 'N'
int N;
^
/in/foo.c:60:14: error: lvalue required as unary '&' operand
scanf("%d", &N);
^
/in/foo.c:3:17: error: expected ')' before ';' token
#define N 300000;
^
/in/foo.c:60:15: note: in expansion of macro 'N'
scanf("%d", &N);
^
/in/foo.c:61:18: error: expected expression before ';' token
for(int i=0; i<N; i++){
^
/in/foo.c:62:19: error: 'a' undeclared (first use in this function)
scanf("%d %d", &a[i].in, &a[i].ban);
^
/in/foo.c:62:19: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:3:17: error: expected ')' before ';' token
#define N 300000;
^
/in/foo.c:66:11: note: in expansion of macro 'N'
qsort(a, N, sizeof(a[0]), cmp);
^
/in/foo.c:66:2: error: too few arguments to function 'qsort'
qsort(a, N, sizeof(a[0]), cmp);
^~~~~
In file included from /in/foo.c:2:0:
/usr/include/stdlib.h:725:13: note: declared here
extern void qsort (void *__base, size_t __nmemb, size_t __size,
^~~~~
/in/foo.c:3:17: error: expected ')' before ';' token
#define N 300000;
^
/in/foo.c:67:17: note: in expansion of macro 'N'
re = result(a, N);
^
/in/foo.c:67:14: error: type of formal parameter 1 is incomplete
re = result(a, N);
^