What does Samar mean?
From the Sanskrit समर (samara), 'war, battle, conflict'. A genuine classical word (as in the treatise Samarangana-Sutradhara). Note: an identical-looking Arabic name Samar ('evening conversation') exists and is unrelated; this entry reflects the Sanskrit source.
What does Devansh mean?
A compound of Sanskrit देव (deva, 'god, divine') + अंश (aṃśa, 'portion, part'), read as 'a part/spark of God'. The elements are genuine Sanskrit, though the compound itself is a modern coinage used as a name rather than a classical term.