Why this doesnt work?

int t; //Tiempo
t =millis();

Variables used with millis() like like this should be declared as unsigned long or else they will overflow.