Borderou de evaluare (job #2589660)
Utilizator | Data | 26 martie 2020 18:03:36 | |
---|---|---|---|
Problema | BFS - Parcurgere in latime | Status | done |
Runda | Arhiva educationala | Compilator | c-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c:14:2: error: unknown type name 'listNode'
listNode* next;
^~~~~~~~
main.c:15:2: error: unknown type name 'listNode'
listNode* prev;
^~~~~~~~
main.c:16:1: warning: useless storage class specifier in empty declaration
};
^
main.c:22:37: error: expected ';', ',' or ')' before '&' token
int citireFisier(char* filename,int &node,int &noduri)
^
main.c:42:16: error: unknown type name 'listNode'
void pushCoada(listNode*& first, listNode*& last, type element)
^~~~~~~~
main.c:42:34: error: unknown type name 'listNode'
void pushCoada(listNode*& first, listNode*& last, type element)
^~~~~~~~
main.c:59:15: error: unknown type name 'listNode'
void popCoada(listNode*& first, listNode*& last)
^~~~~~~~
main.c:59:33: error: unknown type name 'listNode'
void popCoada(listNode*& first, listNode*& last)
^~~~~~~~
main.c:78:10: error: unknown type name 'listNode'
void BFS(listNode* first, listNode* last,int noduri, int node)
^~~~~~~~
main.c:78:27: error: unknown type name 'listNode'
void BFS(listNode* first, listNode* last,int noduri, int node)
^~~~~~~~
main.c: In function 'main':
main.c:106:17: warning: implicit declaration of function 'citireFisier' [-Wimplicit-function-declaration]
int nrmuchii = citireFisier((char*)"bfs.in",node,noduri);
^~~~~~~~~~~~
main.c:108:2: error: unknown type name 'listNode'
listNode* head = NULL;
^~~~~~~~
main.c:108:2: note: use 'struct' keyword to refer to the type
main.c:109:2: error: unknown type name 'listNode'
listNode* first = NULL, * last = NULL;
^~~~~~~~
main.c:109:2: note: use 'struct' keyword to refer to the type
main.c:110:2: warning: implicit declaration of function 'BFS' [-Wimplicit-function-declaration]
BFS(first, last, nrmuchii, node);
^~~
main.c:108:12: warning: unused variable 'head' [-Wunused-variable]
listNode* head = NULL;
^~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !