US President Barack Obama said Wednesday that Chinese President Hu Jintao agreed with him on the need to fight