Example

function(){

}

int main(int argc, char** argv)
{
const int constant = 10;
double nonConst;

nonConst = (
const double) constant;

return 0;

}

Solution
Always specify the return type of a function.

void function(){

}


int main(int argc, char** argv)
{
const int constant = 10;
double nonConst;

nonConst = (
const double) constant;

return 0;

}