black hard stool may be due to low hydration ,drug,low fiber diet etc.
if u have no constipation
,nothing to worry
drink more water ,eat more fruits and green veg
do regular exercise .
u willl be okay in 5-7 days.
pain may be due to some trauma or infection.
wait for 5 day before going to doctor