counter[tmp] = ((tmpNumberCredit / pow(10, count - c - 1))) % 10; When compiling produces an error:
invalid operands to binary expression ('double' and 'double')
% not suitable for type lon long int
counter[tmp] = ((tmpNumberCredit / pow(10, count - c - 1))) % 10; When compiling produces an error:
invalid operands to binary expression ('double' and 'double')
% not suitable for type lon long int
Source: https://ru.stackoverflow.com/questions/745214/
All Articles
powfunction as if double returns. Make an explicit caste. - pavelpow, but I am also not sure that you need exactlytmpNumberCreditinteger division of thispow. You can, curing in one place, perekalechit in another. - Harry