Borderou de evaluare (job #3354182)
| Utilizator | Data | 16 mai 2026 01:22:02 | |
|---|---|---|---|
| Problema | Algoritmul lui Dijkstra | Status | done |
| Runda | Arhiva educationala | Compilator | c-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.c:11:9: error: unknown type name 'weightedListNode'
11 | weightedListNode* next;
| ^~~~~~~~~~~~~~~~
main.c:57:6: warning: return type of 'main' is not 'int' [-Wmain]
57 | void main(int argc, char* argv[]) {
| ^~~~
main.c: In function 'add_edge':
main.c:69:23: warning: assignment to 'int *' from incompatible pointer type 'weightedListNode *' [-Wincompatible-pointer-types]
69 | newNode->next = graph->adjacencyList[node1];
| ^
main.c: In function 'dijkstra':
main.c:180:87: warning: assignment to 'weightedListNode *' from incompatible pointer type 'int *' [-Wincompatible-pointer-types]
180 | for (weightedListNode* v = graph->adjacencyList[u.node]; v != NULL; v = v->next)
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
