记录详情

Runtime Error

foo.cc: In function 'int main()':
foo.cc:83:11: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
   83 |   scanf("%d%d%d%d", &x1, &y1, &x2, &y2);
      |          ~^         ~~~
      |           |         |
      |           int*      long long int*
      |          %lld
foo.cc:83:13: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
   83 |   scanf("%d%d%d%d", &x1, &y1, &x2, &y2);
      |            ~^            ~~~
      |             |            |
      |             int*         long long int*
      |            %lld
foo.cc:83:15: warning: format '%d' expects argument of type 'int*', but argument 4 has type 'long long int*' [-Wformat=]
   83 |   scanf("%d%d%d%d", &x1, &y1, &x2, &y2);
      |              ~^               ~~~
      |               |               |
      |               int*            long long int*
      |              %lld
foo.cc:83:17: warning: format '%d' expects argument of type 'int*', but argument 5 has type 'long long int*' [-Wformat=]
   83 |   scanf("%d%d%d%d", &x1, &y1, &x2, &y2);
      |                ~^                  ~~~
      |                 |                  |
      |                 int*               long long int*
      |                %lld
foo.cc:85:32: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
   85 |    if(minh[y1] != x1) printf("%d\n", ea[minh[y1]][y1]);
      |                               ~^     ~~~~~~~~~~~~~~~~
      |                                |                    |
      |                                int                  long long int
      |                               %lld
foo.cc:86:18: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
   86 |    else printf("%d\n", ea[cmh[y1]][y1]);
      |                 ~^     ~~~~~~~~~~~~~~~
      |                  |                   |
      |                  int                 long long int
      |                 %lld
foo.cc:89:32: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
   89 |    if(minz[x1] != y1) printf("%d\n", eb[x1][minz[x1]]);
      |                               ~^     ~~~~~~~~~~~~~~~~
      |                                |                    |
      |                                int                  long long int
      |                               %lld
foo.cc:90:18: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
   90 |    else printf("%d\n", eb[x1][cmz[x1]]);
      |                 ~^     ~~~~~~~~~~~~~~~
      |                  |                   |
      |                  int                 long long int
      |                 %lld
foo.cc:64:9: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
   64 |  freopen("walk.in", "r", stdin);
      |  ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
foo.cc:65:9: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
   65 |  freopen("walk.out", "w", stdout);
      |  ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:83:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   83 |   scanf("%d%d%d%d", &x1, &y1, &x2, &y2);
      |   ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Found 10 testcases.
# 状态 耗时 内存占用
#1 Runtime Error Segmentation fault 2ms 504.0 KiB
#2 Runtime Error Segmentation fault 2ms 416.0 KiB
#3 Runtime Error Segmentation fault 10ms 7.938 MiB
#4 Runtime Error Segmentation fault 11ms 7.957 MiB
#5 Runtime Error Segmentation fault 10ms 7.867 MiB
#6 Runtime Error Segmentation fault 11ms 7.852 MiB
#7 Runtime Error Segmentation fault 10ms 7.852 MiB
#8 Time Exceeded ≥2092ms ≥765.543 MiB
#9 Time Exceeded ≥2050ms ≥765.586 MiB
#10 Time Exceeded ≥2047ms ≥766.297 MiB
您没有权限查看该代码,完成本题后再来查看

信息

递交者
类型
递交模式
题目
P6241 [2023 AHOI初中组] 行走(walk)
语言
C++14
递交时间
2023-04-16 20:42:02
评测时间
2023-04-16 20:42:02
评测机
分数
0
总耗时
6251ms
峰值内存
766.297 MiB