Borderou de evaluare (job #2491573)
Utilizator | Data | 12 noiembrie 2019 19:32:06 | |
---|---|---|---|
Problema | Paduri de multimi disjuncte | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:6:1: error: expected initializer before 'int'
int h[100005];//t e vectorul de tati, h vecotrul de inaltimi
^~~
main.cpp: In function 'int varf(int)':
main.cpp:11:14: error: 't' was not declared in this scope
while(x!=t[x])
^
main.cpp: In function 'void unire(int, int)':
main.cpp:18:8: error: 'h' was not declared in this scope
if(h[x] > h[y])
^
main.cpp:19:9: error: 't' was not declared in this scope
t[y] = x;//t[x] = tatal lui x, adica cel de deasupra
^
main.cpp:23:13: error: 't' was not declared in this scope
t[x] = y;
^
main.cpp:27:13: error: 't' was not declared in this scope
t[y] = x;
^
main.cpp: In function 'int main()':
main.cpp:37:9: error: 't' was not declared in this scope
t.push_back(i);
^
main.cpp:38:9: error: 'h' was not declared in this scope
h[i]=1;
^
main.cpp:33:24: warning: unused variable 'ty' [-Wunused-variable]
int n, m, i, x, y, ty, tx, c;
^~
main.cpp:33:28: warning: unused variable 'tx' [-Wunused-variable]
int n, m, i, x, y, ty, tx, c;
^~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !