Borderou de evaluare (job #2589969)
Utilizator | Data | 27 martie 2020 11:42:52 | |
---|---|---|---|
Problema | Parcurgere DFS - componente conexe | Status | done |
Runda | Arhiva educationala | Compilator | c-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c:16:2: error: unknown type name 'listNode'
listNode* next;
^~~~~~~~
main.c:17:2: error: unknown type name 'listNode'
listNode* prev;
^~~~~~~~
main.c:18:1: warning: useless storage class specifier in empty declaration
};
^
main.c:23:16: error: unknown type name 'listNode'
void pushStiva(listNode*& head, type element)
^~~~~~~~
main.c:39:15: error: unknown type name 'listNode'
void popStiva(listNode*& head)
^~~~~~~~
main.c:69:16: error: unknown type name 'listNode'
void pushCoada(listNode*& first, listNode*& last, type element)
^~~~~~~~
main.c:69:34: error: unknown type name 'listNode'
void pushCoada(listNode*& first, listNode*& last, type element)
^~~~~~~~
main.c:85:15: error: unknown type name 'listNode'
void popCoada(listNode*& first, listNode*& last)
^~~~~~~~
main.c:85:33: error: unknown type name 'listNode'
void popCoada(listNode*& first, listNode*& last)
^~~~~~~~
main.c:101:16: error: unknown type name 'listNode'
void BFS_coada(listNode*&first,listNode*&last,int noduri,type element)
^~~~~~~~
main.c:101:32: error: unknown type name 'listNode'
void BFS_coada(listNode*&first,listNode*&last,int noduri,type element)
^~~~~~~~
main.c:137:16: error: unknown type name 'listNode'
void DFS_stiva(listNode *&stiva,int noduri,int element)
^~~~~~~~
main.c: In function 'main':
main.c:178:2: error: unknown type name 'listNode'
listNode* head = NULL;
^~~~~~~~
main.c:178:2: note: use 'struct' keyword to refer to the type
main.c:179:2: error: unknown type name 'listNode'
listNode* first = NULL, * last = NULL;
^~~~~~~~
main.c:179:2: note: use 'struct' keyword to refer to the type
main.c:180:2: warning: implicit declaration of function 'BFS_coada' [-Wimplicit-function-declaration]
BFS_coada(first,last, noduri,1);
^~~~~~~~~
main.c:183:2: warning: implicit declaration of function 'DFS_stiva' [-Wimplicit-function-declaration]
DFS_stiva(head, noduri, 1);
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !