I don't understand your question or code. Is there something your trying to do? how can i output the value k from the input string day
You never give k a value. If you want to output a single char from the string that's something different.
What is string days? looks like an array, but you can't define an array with a variable length such as k. If k is suppose to be constant you need to have a keyword const in front of it.
string day; // This declares a std::string called day. Just like int k, makes an integer k.