// you don't need cstdlib here
#include <string> // but you do use std::string
#include <iostream> // and std::cout and std::endl
// using namespace std; // avoid "use all"
int main()
{
using std::string; // explicit using
string str = "tester";
std::cout << str << std::endl;
}