Main.cc:6:12: error: stray ‘\357’ in program
int north,south;
^
Main.cc:6:13: error: stray ‘\274’ in program
int north,south;
^
Main.cc:6:14: error: stray ‘\214’ in program
int north,south;
^
Main.cc:6:7: error: expected ‘;’ at end of member declaration
int north,south;
^~~~~
Main.cc:6:15: error: ‘south’ does not name a type
int north,south;
^~~~~
Main.cc: In function ‘int main()’:
Main.cc:19:36: error: ‘struct node’ has no member named ‘south’; did you mean ‘north’?
scanf("%d%d",&a[i].north,&a[i].south);//以上是输入
^~~~~
north
Main.cc:22:17: error: ‘struct node’ has no member named ‘south’; did you mean ‘north’?
d[++len]=a[1].south;
^~~~~
north
Main.cc:25:41: error: ‘struct node’ has no member named ‘south’; did you mean ‘north’?
int ll=upper_bound(d+1,d+len+1,a[i].south)-d;
^~~~~
north
Main.cc:26:16: error: ‘struct node’ has no member named ‘south’; did you mean ‘north’?
d[ll]=a[i].south;
^~~~~
north
Main.cc:16:8: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&f1,&f2);//其实长和宽没用,数据肯定是符合要求的
~~~~~^~~~~~~~~~~~~~~~
Main.cc:17:8: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
~~~~~^~~~~~~~~