Invalid conversion from 'const char*' to 'char' for simple delimiter

A char variable, by definition, can only hold a single character whilst "/" is actually 2 characters, one for the slash and another for the terminating zero of the string.
Use char delimiter = '/'; instead