/ Vijos /

记录详情

Accepted

foo.cc: In function ‘void Dijkstra(long int)’:
foo.cc:121:27: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘std::vector<edgenode>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  121 |         for (int z = 0; z < edge[x.dot].size(); z++)
      |                         ~~^~~~~~~~~~~~~~~~~~~~
foo.cc: In function ‘int main()’:
foo.cc:137:13: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=]
  137 |     scanf("%d", &n);
      |            ~^   ~~
      |             |   |
      |             |   long int*
      |             int*
      |            %ld
foo.cc:138:13: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=]
  138 |     scanf("%d", &m);
      |            ~^   ~~
      |             |   |
      |             |   long int*
      |             int*
      |            %ld
foo.cc:143:17: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=]
  143 |         scanf("%d%s",Te+i, str);
      |                ~^    ~~~~
      |                 |      |
      |                 int*   long int*
      |                %ld
foo.cc:160:19: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=]
  160 |     else printf("%d", cost[ed]);
      |                  ~^   ~~~~~~~~
      |                   |          |
      |                   int        long int
      |                  %ld
# 状态 耗时 内存占用
#1 Accepted 3ms 1.566 MiB
#2 Accepted 4ms 1.527 MiB
#3 Accepted 3ms 1.523 MiB
#4 Accepted 3ms 1.77 MiB
#5 Accepted 3ms 1.523 MiB
#6 Accepted 3ms 1.523 MiB
#7 Accepted 3ms 1.523 MiB
#8 Accepted 4ms 1.773 MiB
#9 Accepted 36ms 12.023 MiB
#10 Accepted 38ms 13.203 MiB

信息

递交者
类型
递交
题目
P1019 补丁VS错误
语言
C++
递交时间
2025-02-11 10:23:09
评测时间
2025-02-11 10:23:09
评测机
分数
100
总耗时
105ms
峰值内存
13.203 MiB