foo.cc: In function 'void init()':
foo.cc:9:19: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
#define R(a) scanf("%d",&a)
~~~~~^~~~~~~~~
foo.cc:43:5: note: in expansion of macro 'R'
R(n);
^
foo.cc:9:19: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
#define R(a) scanf("%d",&a)
~~~~~^~~~~~~~~
foo.cc:47:9: note: in expansion of macro 'R'
R(x);
^
[Hydro](https://hydro.ac)提供评测服务