记录详情

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 196.0 KiB

信息

递交者
类型
自测
语言
C
递交时间
2024-11-16 15:42:53
评测时间
2024-11-16 15:42:53
评测机
分数
10
总耗时
1ms
峰值内存
196.0 KiB