/ Vijos /

记录详情

Wrong Answer

foo.cc: In function 'int main()':
foo.cc:26:15: warning: format '%lld' expects argument of type 'long long int*', but argument 2 has type 'int*' [-Wformat=]
   26 |     scanf("%lld%lld",&n,&m);
      |            ~~~^      ~~
      |               |      |
      |               |      int*
      |               long long int*
      |            %d
foo.cc:26:19: warning: format '%lld' expects argument of type 'long long int*', but argument 3 has type 'int*' [-Wformat=]
   26 |     scanf("%lld%lld",&n,&m);
      |                ~~~^     ~~
      |                   |     |
      |                   |     int*
      |                   long long int*
      |                %d
foo.cc:28:19: warning: format '%lld' expects argument of type 'long long int*', but argument 2 has type 'int*' [-Wformat=]
   28 |         scanf("%lld%lld",&x,&y),f[i][1]=y,add(x,i);
      |                ~~~^      ~~
      |                   |      |
      |                   |      int*
      |                   long long int*
      |                %d
foo.cc:28:23: warning: format '%lld' expects argument of type 'long long int*', but argument 3 has type 'int*' [-Wformat=]
   28 |         scanf("%lld%lld",&x,&y),f[i][1]=y,add(x,i);
      |                    ~~~^     ~~
      |                       |     |
      |                       |     int*
      |                       long long int*
      |                    %d
foo.cc:30:16: warning: format '%lld' expects argument of type 'long long int', but argument 2 has type 'int' [-Wformat=]
   30 |     printf("%lld\n",f[0][m+1]);
      |             ~~~^    ~~~~~~~~~
      |                |            |
      |                |            int
      |                long long int
      |             %d
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 0, expect 28. 4ms 412.0 KiB
#2 Wrong Answer Read 0, expect 171. 5ms 412.0 KiB
#3 Wrong Answer Read 0, expect 579. 4ms 516.0 KiB
#4 Wrong Answer Read 0, expect 967. 3ms 412.0 KiB
#5 Wrong Answer Read 0, expect 1158. 4ms 412.0 KiB

信息

递交者
类型
递交
题目
P1180 选课
语言
C++
递交时间
2023-12-09 14:17:11
评测时间
2023-12-09 14:17:11
评测机
分数
0
总耗时
22ms
峰值内存
516.0 KiB