/ Vijos /

记录详情

Runtime Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:43:17: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'char (*)[5]' [-Wformat=]
    scanf("%s",&y);
                 ^
/in/foo.cc:20:8: warning: array subscript is above array bounds [-Warray-bounds]
  if(s[p]==0||s[p]>t) s[p]=t;
     ~~~^
/in/foo.cc:20:25: warning: array subscript is above array bounds [-Warray-bounds]
  if(s[p]==0||s[p]>t) s[p]=t;
                      ~~~^
# 状态 耗时 内存占用
#1 Accepted 788ms 128.32 MiB
#2 Accepted 750ms 128.219 MiB
#3 Accepted 783ms 128.125 MiB
#4 Runtime Error 3ms 256.0 KiB
#5 Runtime Error 3ms 364.0 KiB
#6 Runtime Error 3ms 324.0 KiB
#7 Runtime Error 2ms 256.0 KiB
#8 Runtime Error 3ms 256.0 KiB
#9 Runtime Error 3ms 332.0 KiB
#10 Runtime Error 2ms 332.0 KiB

信息

递交者
类型
递交
题目
P1197 费解的开关
语言
C++
递交时间
2017-07-10 19:00:33
评测时间
2017-07-10 19:00:33
评测机
分数
30
总耗时
2344ms
峰值内存
128.32 MiB