Well DiGiT I can guarantee you your problem is one of the following:
1. Be sure to #include <iostream>
2. The functions you're trying to use are in the std namespace, so either use std::cout and std::endl or put
Code:
using namespace std;
after your #includes.