foo.cc: In function 'int main()':
foo.cc:19:25: warning: array subscript has type 'char' [-Wchar-subscripts]
for(int i=T[s[0]];i<strlen(s);i++)if(s[i]=='-'){x=tdigit(T[s[0]],i-1);y=tdigit(i+1,strlen(s)-1);break;}
^
foo.cc:19:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=T[s[0]];i<strlen(s);i++)if(s[i]=='-'){x=tdigit(T[s[0]],i-1);y=tdigit(i+1,strlen(s)-1);break;}
~^~~~~~~~~~
foo.cc:19:72: warning: array subscript has type 'char' [-Wchar-subscripts]
for(int i=T[s[0]];i<strlen(s);i++)if(s[i]=='-'){x=tdigit(T[s[0]],i-1);y=tdigit(i+1,strlen(s)-1);break;}
^
foo.cc:15: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:18:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%s",s); int x=0,y=0;
~~~~~^~~~~~~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务