Main.cc: In function ‘int kto10(char*, int)’: Main.cc:8:15: error: ‘strlen’ was not declared in this scope for (int i = strlen(chnum) - 1; i >= 0; i--) { ^~~~~~ Main.cc:8:15: note: suggested alternative: ‘mbrlen’ for (int i = strlen(chnum) - 1; i >= 0; i--) { ^~~~~~ mbrlen