Borderou de evaluare (job #1379964)
Utilizator | Data | 6 martie 2015 20:42:36 | |
---|---|---|---|
Problema | Paduri de multimi disjuncte | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int gr(int)’:
user.cpp:12:8: error: ‘T’ was not declared in this scope
if(T[x]!=x) T[x]=gr(T[x]);
^
user.cpp:13:12: error: ‘T’ was not declared in this scope
return T[x];
^
user.cpp: In function ‘void Reunion(int, int)’:
user.cpp:17:5: error: ‘T’ was not declared in this scope
T[gr(x)]=gr(y);
^
user.cpp: In function ‘int main()’:
user.cpp:23:27: error: ‘T’ was not declared in this scope
for(int i=1;i<=n;i++) T[i]=i;
^
user.cpp:29:11: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses]
if(op==2) if(gr(x)==gr(y)) g<<"DA\n";
^
user.cpp: In function ‘int gr(int)’:
user.cpp:14: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 !