start e end devi dichiararli come:

struct tm start;

struct tm end;