Hi Jorge,
After correcting the flaws in your code, I saw no errors (OS X, GCC 3.1):
#include <iostream>
using std::cout;
using std::endl;
#include <string>
using std::string;
int main ()
{
cout << "Hola!" << endl;
string pepe;
pepe = "Hola con string";
cout << pepe << endl;
return 0;
}
--Eljay