foo.cc: In function 'void init()':
foo.cc:32:24: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'char (*)[25]' [-Wformat=]
scanf("%s", &ch);
~~~^
foo.cc:44:24: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'char (*)[25]' [-Wformat=]
scanf("%s", &ch);
~~~^
foo.cc:63:31: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses]
addedge(i, (i & (~resf[j]) | rest[j]), tim[j]);
~~^~~~~~~~~~~~
foo.cc:28:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &N, &M);
~~~~~^~~~~~~~~~~~~~~~
foo.cc:31:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &tim[i]);
~~~~~^~~~~~~~~~~~~~~
foo.cc:32:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%s", &ch);
~~~~~^~~~~~~~~~~
foo.cc:44:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%s", &ch);
~~~~~^~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务