identifiers in C++ code

I'm having trouble with a small c++ program I'm righting and I'm having one small problem with it
#include <iostream>
#include <cmath>
using namespace std;
int main()
{
int x,y,sum;
x=-30;
y=11;
sum= cube(x)/y;
cout<<sum<<endl;
return 0;

its saying cube is not identified - I didn't think you had to do that since I'm just trying to go x^3/y
what am I doing wrong??
There's no cube function.
You'll have to use pow(x,3);
Prefer x*x*x over pow(x,3). pow is overkill for simple squares/cubes.
Where would you say that pow is no longer overkill? (just curious...)
And jason007thomas, you should really put that code into code tags.
Topic archived. No new replies allowed.