Borderou de evaluare (job #2646811)
Utilizator | Data | 2 septembrie 2020 05:13:46 | |
---|---|---|---|
Problema | Parcurgere DFS - componente conexe | Status | done |
Runda | Arhiva educationala | Compilator | c-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c:8:2: error: unknown type name 'nod'
nod *a;
^~~
main.c:12:15: error: expected ';', ',' or ')' before '&' token
void add(pNod &dest, int val)
^
main.c: In function 'citire':
main.c:31:3: warning: implicit declaration of function 'add' [-Wimplicit-function-declaration]
add(v[x], y);
^~~
main.c: In function 'DFS':
main.c:40:32: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
for (p = v[nod]; p != NULL; p = p -> a) if (!viz[p -> x]) DFS(p -> x);
^
main.c: In function 'citire':
main.c:23:2: warning: ignoring return value of 'freopen', declared with attribute warn_unused_result [-Wunused-result]
freopen("dfs.in","r",stdin);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:24:2: warning: ignoring return value of 'freopen', declared with attribute warn_unused_result [-Wunused-result]
freopen("dfs.out","w",stdout);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:25:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&n,&m);
^~~~~~~~~~~~~~~~~~~~
main.c:30:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&x,&y);
^~~~~~~~~~~~~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !