My code said error when i put in tone(buzzer,1000,100); delay(1000);

Read through this thread for a solution.

Or search for "arduino tone and irremote conflict".