Borderou de evaluare (job #2710064)
Utilizator | Data | 21 februarie 2021 19:12:17 | |
---|---|---|---|
Problema | Paduri de multimi disjuncte | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void findparent(int)':
main.cpp:15:43: error: void value not ignored as it ought to be
parent[pos]=findparent(parent[pos]);
^
main.cpp:16:26: error: return-statement with a value, in function returning 'void' [-fpermissive]
return parent[pos];
^
main.cpp:18:12: error: return-statement with a value, in function returning 'void' [-fpermissive]
return pos;
^~~
main.cpp: In function 'void reuniune(int, int)':
main.cpp:24:19: error: void value not ignored as it ought to be
x=findparent(x);
^
main.cpp:25:19: error: void value not ignored as it ought to be
y=findparent(y);
^
main.cpp: In function 'int main()':
main.cpp:51:29: error: invalid operands of types 'void' and 'void' to binary 'operator=='
if(findparent(x)==findparent(y))
~~~~~~~~~~~~~^~~~~~~~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !