I\'m having some problems runnning the following code. I got this: error C2668: \'pow\' : ambiguous call to overloaded function. I\'ve tried to manually cast the arguments t
strlen return type is size_t in C++. So you can resolve the ambiguity via casting:
strlen
size_t
pow(static_cast(16), strlen(n) - i - 1);
also here:
result += (n[i] - "A" + 10) ^ this should be 'A'
and main should return int instead of void:
int
void
int main(void) {