/ TYWZ /

记录详情

Runtime Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:42:15: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'char (*)[200010]' [-Wformat=]
  scanf("%s",&s);
               ^
/in/foo.cc: In function 'void solve()':
/in/foo.cc:12:13: warning: 'first' may be used uninitialized in this function [-Wmaybe-uninitialized]
   if(s[first-1]==s[last+1])
        ~~~~~^~
/in/foo.cc:16:6: note: 'first' was declared here
 void solve()
      ^~~~~
# 状态 耗时 内存占用
#1 Accepted 1ms 220.0 KiB
#2 Wrong Answer 1ms 228.0 KiB
#3 Runtime Error 1ms 480.0 KiB
#4 Wrong Answer 1ms 216.0 KiB
#5 Wrong Answer 2ms 344.0 KiB
#6 Wrong Answer 2ms 348.0 KiB
#7 Runtime Error 2ms 484.0 KiB
#8 Wrong Answer 3ms 356.0 KiB
#9 Wrong Answer 3ms 484.0 KiB
#10 Wrong Answer 5ms 608.0 KiB

信息

递交者
类型
递交
题目
2019.2.11 Problem A - string
比赛
2019.2.11测验
语言
C++
递交时间
2019-02-11 15:54:40
评测时间
2019-02-11 15:54:40
评测机
分数
10
总耗时
27ms
峰值内存
608.0 KiB