/ WHOJ /

记录详情

Runtime Error

foo.cc: In function 'int main()':
foo.cc:8:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
    8 |  scanf("%d\n",&n);
      |  ~~~~~^~~~~~~~~~~
foo.cc:9:28: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
    9 |  for(int i=1;i<=n;i++)scanf("%c",&s),a[i]=s=='L'?-1:1;
      |                       ~~~~~^~~~~~~~~
Found 10 testcases.
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2ms 256.0 KiB
#2 Accepted 2ms 384.0 KiB
#3 Accepted 2ms 256.0 KiB
#4 Accepted 2ms 256.0 KiB
#5 Wrong Answer Read 4, expect 2. 2ms 256.0 KiB
#6 Wrong Answer Read 1, expect 2. 13ms 4.0 MiB
#7 Runtime Error Segmentation fault 14ms 4.125 MiB
#8 Runtime Error Segmentation fault 19ms 4.25 MiB
#9 Wrong Answer Read 17878, expect 2. 12ms 4.125 MiB
#10 Runtime Error Segmentation fault 10ms 4.125 MiB

信息

递交者
类型
递交
题目
P1413 争执
题目数据
下载
语言
C++
递交时间
2022-07-27 16:20:51
评测时间
2022-07-27 16:20:51
评测机
分数
40
总耗时
82ms
峰值内存
4.25 MiB