Borderou de evaluare (job #2905267)
Utilizator | Data | 20 mai 2022 16:43:21 | |
---|---|---|---|
Problema | Coduri Huffman | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int get_minimal()':
main.cpp:27:12: error: 'c' was not declared in this scope
27 | if(c[inter.front()]<c[v.front()]){
| ^
main.cpp: In function 'void dfs(int, long long int, int)':
main.cpp:41:8: error: 'l' was not declared in this scope
41 | if(l[node]==0 && r[node]==0){
| ^
main.cpp:41:22: error: 'r' was not declared in this scope
41 | if(l[node]==0 && r[node]==0){
| ^
main.cpp:42:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
42 | ans[node]=repr;
| ^~~
| abs
main.cpp:43:9: error: 'd' was not declared in this scope
43 | d[node]=depth;
| ^
main.cpp: In function 'int main()':
main.cpp:56:10: error: 'n' was not declared in this scope
56 | fin>>n;
| ^
main.cpp:59:14: error: 'c' was not declared in this scope
59 | fin>>c[i];
| ^
main.cpp:68:9: error: 'l' was not declared in this scope
68 | l[cnt]=a;
| ^
main.cpp:70:9: error: 'r' was not declared in this scope
70 | r[cnt]=b;
| ^
main.cpp:72:9: error: 'c' was not declared in this scope
72 | c[cnt]=c[a]+c[b];
| ^
main.cpp:85:16: error: 'c' was not declared in this scope
85 | total+=c[i]*d[i];
| ^
main.cpp:85:21: error: 'd' was not declared in this scope
85 | total+=c[i]*d[i];
| ^
main.cpp:91:15: error: 'd' was not declared in this scope
91 | fout<<d[i]<<" "<<ans[i]<<'\n';
| ^
main.cpp:91:26: error: 'ans' was not declared in this scope; did you mean 'abs'?
91 | fout<<d[i]<<" "<<ans[i]<<'\n';
| ^~~
| abs
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !