China warns of war as N.Korea vows ‘merciless’ response to US