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

  • pow function as if double returns. Make an explicit caste. - pavel
  • 3
    You would say exactly what you want to calculate - because the problem is not only in pow , but I am also not sure that you need exactly tmpNumberCredit integer division of this pow . You can, curing in one place, perekalechit in another. - Harry

0