You need a visa for Romania, as Algeria is own the list for the list of states whose citizens (annex 1), holders of simple passports, are required a visa upon entry on the Romanian territory.
You don’t need a visa for Bosnia if you stay less than 90 days:
Državljani Rumunije izuzeti su od viznog režima prilikom ulaska, izlaska ili prelaska preko ...
First of all, I think the person you are speaking to is a bit lost, as the list you opened is:
List of third states the citizens whose nationals, holders of diplomatic, service/official and special passports are exempt from the visa requirement in order to enter Romania
People with visas from these countries are exempt from an invitation
On the ...