Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool sub(int x, int k)
- {
- if(x==k) return true;
- else if(x==0) return false;
- else return sub(t[x],k);
- }
- void Ce(int x)
- {
- for(int i=1; i<=n; i++)
- if(sub(i,k) && i!=k)
- cout<<i<<" ";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement