Borderou de evaluare (job #2043990)
Utilizator | Data | 20 octombrie 2017 20:14:18 | |
---|---|---|---|
Problema | Bile | Status | done |
Runda | hlo_cj_av_l3 | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int Root(int)’:
user.cpp:11:14: error: ‘x’ was not declared in this scope
if (parent[x] == x)
^
user.cpp:14:17: error: ‘x’ was not declared in this scope
return parent[x] = root(parent[x]);
^
user.cpp:14:36: error: ‘root’ was not declared in this scope
return parent[x] = root(parent[x]);
^
user.cpp: In function ‘int main()’:
user.cpp:58:18: warning: suggest parentheses around comparison in operand of ‘&’ [-Wparentheses]
if (root != 0 & root != crr)
^
user.cpp:61:26: error: ‘v’ was not declared in this scope
parent[root] = v;
^
user.cpp:72:5: error: ‘out’ was not declared in this scope
out << st2.top() << '\n';
^
user.cpp: In function ‘int Root(int)’:
user.cpp:15: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 !