bus.cpp: In function ‘int main()’:
bus.cpp:29:23: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘int (*)[100010]’ [-Wformat=]
scanf("%d%d",&n,&m);
^
bus.cpp:30:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
for(i=1;i<=m;++i)scanf("%d%d%d%d",&a[i].a,&a[i].b,&a[i].x,&a[i].y);
^
bus.cpp:31:16: error: invalid operands of types ‘data [300010]’ and ‘int [100010]’ to binary ‘operator+’
sort(a+1,a+m+1);
^
bus.cpp:32:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
for(i=1;i<=m;++i)if(a[i].a!=a[i-1].a)st[a[i].a]=i;
^
bus.cpp:29:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&n,&m);
^
bus.cpp:30:71: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
for(i=1;i<=m;++i)scanf("%d%d%d%d",&a[i].a,&a[i].b,&a[i].x,&a[i].y);
^
bus.cpp:35:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&q);
^
bus.cpp:37:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&t.e);
^