Confused on Code Error C++
#include <iostream> #include <string> #include <sstream> #include <iomanip> #include <ios> using namespace std; int main() { string words[1]; //initializing the array int length; //length will be how we eventually check the size of the input for(int x = 0; x < 1; x++){ cout << "Enter Your word, So it shall be tested.\n\n"; std::getline(std::cin, words[x]); } for(int x = words.length()-1; x >=0; x--){ length = words[x].length(); cout << words[x]; } return 0; } Bit lost on this one, Compiler isn't providing enough information for me to accurately figure out my compile error, Trying to simply produce the user's input backwards.