/in/foo.cc: In function 'int main()':
/in/foo.cc:22:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&n,&m);
^
/in/foo.cc:23:62: 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",&w[i].b,&w[i].e,&w[i].t);
^
/in/foo.cc:42:20: warning: ignoring return value of 'int system(const char*)', declared with attribute warn_unused_result [-Wunused-result]
system("pause");
^