void Bresenham(int x1,int y1, int x2, int y2, colour)
                                              ^ you forgot the type here
It should be
void Bresenham(int x1,int y1, int x2, int y2, int colour)
( But you are not even using this function in your code )
You should also use int main() over void main()
int main()
  {
     // your code
    return 0;
  }
You also have an error here
cout>>"Enter your Favorite Colour:";
     ^
     here
it should be
cout << "Enter your Favorite Colour:";
and
cin<<colour;
should be
cin >> colour;
You also have an extra parameter in your call yo line(). Remove that colour from there . It should be
line( x1 , y1 , x2 , y2 );
If you want to set the color, use
setcolor( /* color code */ );
These are the color codes
 0   BLACK
 1   BLUE
 2   GREEN
 3   CYAN
 4   RED
 5   MAGENTA
 6   BROWN
 7   LIGHTGRAY
 8   DARKGRAY
 9   LIGHTBLUE
 10  LIGHTGREEN
 11  LIGHTCYAN
 12  LIGHTRED
 13  LIGHTMAGENTA
 14  YELLOW
 15  WHITE
Example, to get RED, you use
setcolor( 4 );
9
solved expected ‘)’ error in a c++ code [closed]