If there exist an element in map m with XOR equals to x ^ arr [ i ] , that means there exist an element such that the XOR of element with arr [ i ] is equal to x , then increment count .
if ( m . find ( curr_xor ) != m . end ( ) ) result += m [ curr_xor ] ;