foo.cc: In function 'void sc()':
foo.cc:102:30: warning: format '%d' expects argument of type 'int', but argument 8 has type 'long long int' [-Wformat=]
102 | printf("%d %d %d %d %d %d %d\n",pos(i),fa(i),ls(i),rs(i),siz(i),num(i),hsh(i));
| ~^
| |
| int
| %lld
foo.cc: In function 'int main()':
foo.cc:119:16: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
119 | for (int i=1;i<=sr.size();i++) len[i]=len[i-1]*26%md;
| ~^~~~~~~~~~~
foo.cc:120:16: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
120 | for (int i=0;i<sr.size();i++) a[i+2]=sr[i]-'a'+1;
| ~^~~~~~~~~~
foo.cc:127:11: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'char (*)[200005]' [-Wformat=]
127 | scanf("%s%lld",&st,&l);
| ~^ ~~~
| | |
| char* char (*)[200005]
foo.cc:127:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
127 | scanf("%s%lld",&st,&l);
| ~~~~~^~~~~~~~~~~~~~~~~
foo.cc:130:9: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
130 | scanf("%lld",&r);
| ~~~~~^~~~~~~~~~~
foo.cc:142:20: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
142 | getchar(); scanf("%c",&ch);
| ~~~~~^~~~~~~~~~
foo.cc:148:20: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
148 | getchar(); scanf("%c",&ch);
| ~~~~~^~~~~~~~~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务