/ Vijos /

记录详情

Runtime Error

foo.cc: In function 'int main()':
foo.cc:21:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   21 |     scanf("%d", &n);
      |     ~~~~~^~~~~~~~~~
foo.cc:22:39: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   22 |     for (int i = 1; i <= n; ++i) scanf("%d", a + i);
      |                                  ~~~~~^~~~~~~~~~~~~
foo.cc:25:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   25 |     scanf("%d", &m);
      |     ~~~~~^~~~~~~~~~
foo.cc:28:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   28 |         scanf("%d%d", &l, &r);
      |         ~~~~~^~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 3ms 512.0 KiB
#2 Accepted 4ms 1.125 MiB
#3 Accepted 6ms 1.875 MiB
#4 Accepted 12ms 3.75 MiB
#5 Accepted 24ms 7.371 MiB
#6 Accepted 47ms 14.617 MiB
#7 Accepted 60ms 17.992 MiB
#8 Runtime Error Segmentation fault 55ms 19.492 MiB
#9 Runtime Error Segmentation fault 33ms 1016.0 KiB
#10 Runtime Error Segmentation fault 58ms 1016.0 KiB

信息

递交者
类型
递交
题目
P1514 天才的记忆
语言
C++
递交时间
2022-02-08 21:55:00
评测时间
2022-02-08 21:55:00
评测机
分数
70
总耗时
307ms
峰值内存
19.492 MiB