You need to include <iostream>.
#include <iostream>
then whenever you use iostream you need to precede it by std::
example:
std::cout <<lstick << " \n";
this will print the value of the variable lstick.
other examples can be found on the C++ w3schools.