Pant and Gill both achieved centuries, establishing a challenging target of 515 runs for Bangladesh to pursue after India declared at 287 runs.