Why is there showing an error for }


First half

Second half