/ ZYCode /

记录详情

Runtime Error

foo.cc: In function 'int main()':
foo.cc:9:17: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
    9 |         scanf("%d", &n);
      |                ~^   ~~
      |                 |   |
      |                 |   long long int*
      |                 int*
      |                %lld
foo.cc:10:45: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
   10 |         for(int i = 1; i <= n; i++) scanf("%d", &p[i]);
      |                                            ~^   ~~~~~
      |                                             |   |
      |                                             |   long long int*
      |                                             int*
      |                                            %lld
foo.cc:23:54: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
   23 |                 for(int j = 1; j <= n; j++) printf("%d ", ans[i][j]);
      |                                                     ~^    ~~~~~~~~~
      |                                                      |            |
      |                                                      int          long long int
      |                                                     %lld
Found 10 testcases.
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 4ms 412.0 KiB
#2 Accepted 8ms 1.402 MiB
#3 Accepted 8ms 1.355 MiB
#4 Runtime Error 644ms 115.02 MiB
#5 Runtime Error 636ms 115.145 MiB
#6 Runtime Error 609ms 114.984 MiB
#7 Runtime Error 610ms 114.895 MiB
#8 Runtime Error 640ms 115.137 MiB
#9 Runtime Error 642ms 115.02 MiB
#10 Runtime Error 641ms 114.77 MiB

信息

递交者
类型
递交
题目
P1036 【ZYCode R6】Random
语言
C++
递交时间
2023-07-11 13:05:48
评测时间
2023-07-11 13:05:48
评测机
分数
30
总耗时
4445ms
峰值内存
115.145 MiB