记录详情

Accepted

/in/foo.c: In function 'add_edge':
/in/foo.c:25:20: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
     new_edge->next = graph[u].head;
                    ^
/in/foo.c: In function 'dijkstra':
/in/foo.c:53:61: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
         for (Edge* edge = graph[u].head; edge != NULL; edge = edge->next) {
                                                             ^
/in/foo.c: In function 'free_graph':
/in/foo.c:68:21: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
             current = current->next;
                     ^
/in/foo.c: In function 'main':
/in/foo.c:65:15: warning: iteration 999 invokes undefined behavior [-Waggressive-loop-optimizations]
         Edge* current = graph[i].head;
               ^~~~~~~
/in/foo.c:64:5: note: within this loop
     for (int i = 1; i <= n; i++) {
     ^~~
# 状态 耗时 内存占用
#1 Accepted 1ms 236.0 KiB
#2 Accepted 1ms 332.0 KiB
#3 Accepted 4ms 452.0 KiB
#4 Accepted 5ms 636.0 KiB
#5 Accepted 7ms 828.0 KiB

信息

递交者
类型
递交
题目
5 城市中的最短路径
比赛
2024程序设计与竞赛作业赛第六场(Love)
语言
C
递交时间
2024-11-16 15:42:55
评测时间
2024-11-16 15:42:55
评测机
分数
100
总耗时
20ms
峰值内存
828.0 KiB