Please check the error
Subset sum easy problem
@anindya-gupta, your code is correct just the output format is wrong , you have to print βYesβ and βNoβ in a new line
so, just replace line 28 with
cout<<"Yes"<<endl;
and line 39 with
cout<<"No"<<endl;
corrected code:- https://ide.codingblocks.com/s/328651
In case of any doubt feel free to ask 
Mark your doubt as RESOLVED if you got the answer