It's hilarious, because obviously this assignment is in C++, so the OP thought he could just #include <iostream> et voilą, C++!