Buckingham pi theorem

Homework Statement

https://projects.exeter.ac.uk/fluidflow/Courses/FluidDynamics3211-2/DimensionalAnalysis/dimensionalLecturese4.htmlaccording to this link , when we form the pi group , we need to put an exponent for the non-repeating variable ,( in this case , delta P is non-repeating variable , D , v and rho are repeating variable)
http://www.efm.leeds.ac.uk/CIVE/CIVE1400/Section5/dimensional_analysis.htm (refer to 7 )however , in this case , we do not have to put exponent on the non-repeating variable , the author just putF = (MLT^-2 ) instead of (MLT^-2)^d

The Attempt at a Solution

Which is correct ? the first or second one ? is exponential needed for non-repeating variable ?
P/s : this is not same as the question i posted in another thread....