/ OPS /

记录详情

Runtime Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:5:20: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'int' [-Wformat=]
    5 |     while (scanf("%d%d%d%d%d", v1, v2, v3, e, l) != EOF) {
      |                   ~^           ~~
      |                    |           |
      |                    int*        int
/in/foo.cc:5:22: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'int' [-Wformat=]
    5 |     while (scanf("%d%d%d%d%d", v1, v2, v3, e, l) != EOF) {
      |                     ~^             ~~
      |                      |             |
      |                      int*          int
/in/foo.cc:5:24: warning: format '%d' expects argument of type 'int*', but argument 4 has type 'int' [-Wformat=]
    5 |     while (scanf("%d%d%d%d%d", v1, v2, v3, e, l) != EOF) {
      |                       ~^               ~~
      |                        |               |
      |                        int*            int
/in/foo.cc:5:26: warning: format '%d' expects argument of type 'int*', but argument 5 has type 'int' [-Wformat=]
    5 |     while (scanf("%d%d%d%d%d", v1, v2, v3, e, l) != EOF) {
      |                         ~^                 ~
      |                          |                 |
      |                          int*              int
/in/foo.cc:5:28: warning: format '%d' expects argument of type 'int*', but argument 6 has type 'int' [-Wformat=]
    5 |     while (scanf("%d%d%d%d%d", v1, v2, v3, e, l) != EOF) {
      |                           ~^                  ~
      |                            |                  |
      |                            int*               int
/in/foo.cc:5:17: warning: 'v1' is used uninitialized in this function [-Wuninitialized]
    5 |     while (scanf("%d%d%d%d%d", v1, v2, v3, e, l) != EOF) {
      |            ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.cc:5:17: warning: 'v2' is used uninitialized in this function [-Wuninitialized]
/in/foo.cc:5:17: warning: 'v3' is used uninitialized in this function [-Wuninitialized]
/in/foo.cc:5:17: warning: 'e' is used uninitialized in this function [-Wuninitialized]
/in/foo.cc:5:17: warning: 'l' is used uninitialized in this function [-Wuninitialized]
# 状态 耗时 内存占用
#1 Runtime Error 3ms 352.0 KiB

信息

递交者
类型
递交
题目
P1668 可怜的小狗
语言
C++
递交时间
2024-04-05 18:10:43
评测时间
2024-04-05 18:10:43
评测机
分数
0
总耗时
3ms
峰值内存
352.0 KiB