foo.cc: In function 'int main()':
foo.cc:28:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf( "%d" , &n ) ; an = 0 ;
~~~~~^~~~~~~~~~~~~
foo.cc:30:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf( "%d%d" , S + i , T + i ) ; T[ i ] += S[ i ] ;
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc: In function 'int getp(int)':
foo.cc:21:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务