Borderou de evaluare (job #2656599)
Utilizator | Data | 8 octombrie 2020 08:40:17 | |
---|---|---|---|
Problema | Parcurgere DFS - componente conexe | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:12:1: error: 'pnod' does not name a type
pnod v[100005];
^~~~
main.cpp:13:10: error: variable or field 'add' declared void
void add(pnod &dest,int val){
^~~~
main.cpp:13:16: error: 'dest' was not declared in this scope
void add(pnod &dest,int val){
^~~~
main.cpp:13:21: error: expected primary-expression before 'int'
void add(pnod &dest,int val){
^~~
main.cpp: In function 'void citire()':
main.cpp:23:13: error: 'v' was not declared in this scope
add(v[x],y);
^
main.cpp:23:19: error: 'add' was not declared in this scope
add(v[x],y);
^
main.cpp: In function 'void DFS(int)':
main.cpp:28:10: error: expected ';' before 'p'
pnod p;
^
main.cpp:28:11: warning: statement has no effect [-Wunused-value]
pnod p;
^
main.cpp:30:9: error: 'p' was not declared in this scope
for(p=v[nd];p!=NULL;p->a)
^
main.cpp:30:11: error: 'v' was not declared in this scope
for(p=v[nd];p!=NULL;p->a)
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !