Borderou de evaluare (job #2939455)
Utilizator | Data | 13 noiembrie 2022 18:32:04 | |
---|---|---|---|
Problema | Arbori de intervale | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void dfs1(int, int)':
main.cpp:16:21: error: too few arguments to function 'void dfs1(int, int)'
16 | dfs1(vec);
| ^
main.cpp:9:6: note: declared here
9 | void dfs1(int nod,int tata)
| ^~~~
main.cpp:26:24: error: 'val' was not declared in this scope
26 | downVal[nod]=best1+val[nod];
| ^~~
main.cpp: In function 'void dfs2(int)':
main.cpp:34:25: error: 'val' was not declared in this scope
34 | if(downVal[nod]+val[nod]==valDown[tata])
| ^~~
main.cpp:34:35: error: 'valDown' was not declared in this scope
34 | if(downVal[nod]+val[nod]==valDown[tata])
| ^~~~~~~
main.cpp:34:43: error: 'tata' was not declared in this scope
34 | if(downVal[nod]+val[nod]==valDown[tata])
| ^~~~
main.cpp:38:35: error: 'val' was not declared in this scope
38 | upVal[nod]=max(upVal[nod],val[nod]+upVal[tata]);
| ^~~
main.cpp:38:50: error: 'tata' was not declared in this scope
38 | upVal[nod]=max(upVal[nod],val[nod]+upVal[tata]);
| ^~~~
main.cpp:41:20: error: 'val' was not declared in this scope
41 | upVal[nod]=val[nod];
| ^~~
main.cpp:43:17: error: 'tata' was not declared in this scope
43 | if(vec!=tata)
| ^~~~
main.cpp: In function 'int main()':
main.cpp:48:5: error: 'f' was not declared in this scope
48 | f>>n;
| ^
main.cpp:50:12: error: 'val' was not declared in this scope
50 | f>>val[i]
| ^~~
main.cpp:51:18: error: 'i' was not declared in this scope
51 | for(int i=1; i<n; i++)
| ^
main.cpp:63:13: error: too many arguments to function 'void dfs2(int)'
63 | dfs2(1,0);
| ^
main.cpp:29:6: note: declared here
29 | void dfs2(int nod)
| ^~~~
main.cpp:65:9: error: 'g' was not declared in this scope
65 | g<<max(downVal[nod],upVal[nod])<<'\n';
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !