/ Vijos /

记录详情

Accepted

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)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 0ms 256.0 KiB
#2 Accepted 0ms 256.0 KiB
#3 Accepted 0ms 256.0 KiB
#4 Accepted 1ms 256.0 KiB
#5 Accepted 0ms 256.0 KiB
#6 Accepted 1ms 512.0 KiB
#7 Accepted 10ms 1.699 MiB
#8 Accepted 7ms 2.145 MiB
#9 Accepted 10ms 2.176 MiB
#10 Accepted 11ms 2.199 MiB

信息

递交者
类型
递交
题目
P1246 文科生的悲哀(二)
语言
C++
递交时间
2021-08-08 21:51:07
评测时间
2021-08-08 21:51:07
评测机
分数
100
总耗时
45ms
峰值内存
2.199 MiB