Borderou de evaluare (job #1701476)
Utilizator | Data | 13 mai 2016 10:43:56 | |
---|---|---|---|
Problema | Paduri de multimi disjuncte | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:7:1: error: expected ‘,’ or ‘;’ before ‘int’
int n,m,x,y,c,t[100000],r[100000];
^
user.cpp: In function ‘void reuniune(int, int)’:
user.cpp:11:8: error: ‘r’ was not declared in this scope
if(r[x]>r[y])
^
user.cpp:12:9: error: ‘t’ was not declared in this scope
t[y]=x;
^
user.cpp:14:9: error: ‘t’ was not declared in this scope
t[x]=y;
^
user.cpp:16:8: error: ‘r’ was not declared in this scope
if(r[x]==r[y])
^
user.cpp:17:9: error: ‘t’ was not declared in this scope
{ t[x]=y;
^
user.cpp: In function ‘int gasire_radacina(int)’:
user.cpp:25:8: error: ‘t’ was not declared in this scope
if(t[x]==x)
^
user.cpp: In function ‘int main()’:
user.cpp:34:8: error: ‘n’ was not declared in this scope
f>>n>>m;
^
user.cpp:34:11: error: ‘m’ was not declared in this scope
f>>n>>m;
^
user.cpp:36:9: error: ‘t’ was not declared in this scope
t[i]=i;
^
user.cpp:41:12: error: ‘c’ was not declared in this scope
f>>c>>x>>y;
^
user.cpp:41:15: error: ‘x’ was not declared in this scope
f>>c>>x>>y;
^
user.cpp:41:18: error: ‘y’ was not declared in this scope
f>>c>>x>>y;
^
user.cpp: In function ‘int gasire_radacina(int)’:
user.cpp:29:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !