foo.cc:6:1: error: expected initializer before 'struct'
6 | struct node{
| ^~~~~~
foo.cc:8:2: error: 'a' does not name a type
8 | }a[MN];
| ^
foo.cc:9:10: error: 'node' was not declared in this scope
9 | bool cmp(node a,node b){
| ^~~~
foo.cc:9:17: error: 'node' was not declared in this scope
9 | bool cmp(node a,node b){
| ^~~~
foo.cc:9:23: error: expression list treated as compound expression in initializer [-fpermissive]
9 | bool cmp(node a,node b){
| ^
foo.cc: In function 'void solve()':
foo.cc:13:9: error: 's' was not declared in this scope
13 | s=0;
| ^
foo.cc:16:22: error: 'a' was not declared in this scope
16 | cin>>a[i].start>>a[i].end>>a[i].time;
| ^
foo.cc:18:14: error: 'a' was not declared in this scope
18 | sort(a+1,a+n+1,cmp);
| ^