Get help on this challenge


Please read this explanation before attempting debugging challenges.

My code runs just fine, but I still think there's something wrong with it. Any ideas?

//Made by COM
using namespace std;

int main()
 string input;
 char* temp;
 cout<<"Input line for reversal: ";
 getline(cin, input);
 int length=input.length();
 for(int i=0; i<length; i++)
  temp=new char;
 delete temp;
 cout<<"Your reversed line is: "<<input;
 return 0;

Downloadable source code can be found here.

You must be logged in to play. Login or register here

Challenge by COM.