Forecasters warned Tuesday that the system could strengthen within 24 hours , triggering dangerous flash floods and mudslides over areas of mountainous terrain .