/ OPS /

记录详情

Runtime Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:12:11: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'int' [-Wformat=]
   12 |   scanf("%d", p1[0]);
      |          ~^   ~~~~~
      |           |       |
      |           int*    int
/in/foo.cc:15:12: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'int' [-Wformat=]
   15 |    scanf("%d", p1[i]);
      |           ~^   ~~~~~
      |            |       |
      |            int*    int
/in/foo.cc:12:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   12 |   scanf("%d", p1[0]);
      |   ~~~~~^~~~~~~~~~~~~
/in/foo.cc:15:9: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   15 |    scanf("%d", p1[i]);
      |    ~~~~~^~~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Runtime Error 3ms 372.0 KiB

信息

递交者
类型
递交
题目
P1004 Jolly Jumpers
语言
C++
递交时间
2024-12-19 19:50:08
评测时间
2024-12-19 19:50:08
评测机
分数
0
总耗时
3ms
峰值内存
372.0 KiB