confused help

i've arduino uno r3. i uploaded some programms and it worked normally till I upload new project.
my new project works I/O (2,4,7) but pin 10 works even i cant control pin 10. what should i do, help pls very appropriate.
my code:
by the way this project works repeatly even in 'trunk' has no any signal

int trunk=2;
int acc=4;
int starter=7;

void setup() {
pinMode(trunk,INPUT);
pinMode(acc,OUTPUT);
pinMode(starter,OUTPUT);

}

void loop() {
int check = digitalRead(trunk);

if(check == HIGH)
{
digitalWrite(acc,HIGH);
delay(3000);
digitalWrite(starter,HIGH);
delay(500);
digitalWrite(starter,LOW);
delay(3000);
digitalWrite(acc,LOW);
}

}

You don't have pin 10 defined.
How is pin 2 wired, do you have a pullup?

I have no idea what you're asking about pin 10.

As for the code there running when there's no signal on trunk - what is currently connected to that pin?

If you have nothing connected, it will float, and it's quite possible that it would float up until it was treated as a logical high. In this case, there are two solutions: Either put a pulldown resistor on that pin, something like a 10k resistor between that and ground, to keep it low unless something else forces it high, and use the current code - OR - change pinMode to INPUT_PULLUP, and reverse the input so it goes low when you want it to do stuff (this could range from trivial to slightly challenging, depending on what the source of the input is), and reverse the test in the code.

Also, this is probably the wrong section.