compound literal of non-object type 'void' problem

hi guys i'm new in arduino & i'm posting this to help me with this problem.
Arduino: 1.8.6 Hourly Build 2017/10/20 02:33 (Windows 8.1), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"

C:\Users\sbe1\Documents\Arduino\Obstacle_Avoiding_Bot\Obstacle_Avoiding_Bot.ino: In function 'void loop()':

Obstacle_Avoiding_Bot:91: error: compound literal of non-object type 'void'

digitalWrite(RightMotorForward, LOW);

^

Obstacle_Avoiding_Bot:89: error: expected primary-expression before 'void'

void moveStop(){

^

Obstacle_Avoiding_Bot:97: error: compound literal of non-object type 'void'

void moveForward(){

^

Obstacle_Avoiding_Bot:97: error: expected primary-expression before 'void'

void moveForward(){

^

In file included from D:\Downloaded games\Apocalypse\downded programs\arduino-nightly\hardware\arduino\avr\cores\arduino/Arduino.h:24:0,

from sketch\Obstacle_Avoiding_Bot.ino.cpp:1:

Obstacle_Avoiding_Bot:113: error: compound literal of non-object type 'void'

goesForward=false;

^

Obstacle_Avoiding_Bot:111: error: expected primary-expression before 'void'

void moveBackward(){

^

Obstacle_Avoiding_Bot:125: error: compound literal of non-object type 'void'

digitalWrite(LeftMotorForward, HIGH);

^

Obstacle_Avoiding_Bot:123: error: expected primary-expression before 'void'

void turnRight(){

^

Obstacle_Avoiding_Bot:142: error: compound literal of non-object type 'void'

digitalWrite(LeftMotorBackward, HIGH);

^

Obstacle_Avoiding_Bot:140: error: expected primary-expression before 'void'

void turnLeft(){

^

Obstacle_Avoiding_Bot:155: error: expected '}' at end of input

}

^

exit status 1
compound literal of non-object type 'void'

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

any solve for this? please

Can you post your sketch?

#include <Robot_Control.h>
#include <NewPing.h>

//Our L298N control pins
const int LeftMotorForward=5; //LeftMotorForward
const int LeftMotorBackward=4; //LeftMotorBackward
const int RightMotorForward=3; //RightMotorForward
const int RightMotorBackward=2; //RightMotorBackward

//Sensor Sonars pins
int echo_Right=A1;
int trig_Right=A0;
int echo_Front=A3;
int trig_Front=A2;
int echo_Left=A5;
int trig_Left=A4;

#define maximum_distance 200
boolean goesForward = false;
int distance = 100;

NewPing sonar_Right(trig_Right, echo_Right, maximum_distance); //sensor function
NewPing sonar_Front(trig_Front, echo_Front, maximum_distance); //sensor function
NewPing sonar_Left(trig_Left, echo_Left, maximum_distance); //sensor function
void setup()
{
Serial.begin(9600);
pinMode(trig_Right,OUTPUT);
pinMode(echo_Right,INPUT);
pinMode(trig_Front,OUTPUT);
pinMode(echo_Front,INPUT);
pinMode(trig_Left,OUTPUT);
pinMode(echo_Left,INPUT);
pinMode(LeftMotorForward,OUTPUT);
pinMode(LeftMotorBackward,OUTPUT);
pinMode(RightMotorForward,OUTPUT);
pinMode(RightMotorBackward,OUTPUT);
}

void loop() {
{
int distance_Right=0;
int distance_Front=0;
int distance_Left=0;
#define moveStop()
#define moveForward()
#define moveBackward()
#define turnLeft()
#define turnRight()
if (distance_Front<=distance);{
moveStop();
delay(300);
moveBackward();
delay(400);
moveStop();
delay(300);
turnRight();
}
if (distance_Front<=distance && distance_Right<=distance);
{
moveStop();
delay(300);
turnLeft();
}
if (distance_Front<=distance && distance_Left<=distance);{
moveStop();
delay(300);
turnRight();
}
if (distance_Front<=distance && distance_Right<=distance && distance_Left<=distance);{
moveStop();
delay(300);
moveBackward();
delay(500);
moveStop();
delay(300);
turnLeft();
}
if(distance_Right<=distance && distance_Left<=distance);
{
moveStop();
delay(300);
moveBackward();
delay(600);}

}

void moveStop(){

digitalWrite(RightMotorForward, LOW);
digitalWrite(LeftMotorForward, LOW);
digitalWrite(RightMotorBackward, LOW);
digitalWrite(LeftMotorBackward, LOW);
}

void moveForward(){

if(!goesForward){

goesForward=true;

digitalWrite(LeftMotorForward, HIGH);
digitalWrite(RightMotorForward, HIGH);

digitalWrite(LeftMotorBackward, LOW);
digitalWrite(RightMotorBackward, LOW);
}
}

void moveBackward(){

goesForward=false;

digitalWrite(LeftMotorBackward, HIGH);
digitalWrite(RightMotorBackward, HIGH);

digitalWrite(LeftMotorForward, LOW);
digitalWrite(RightMotorForward, LOW);

}

void turnRight(){

digitalWrite(LeftMotorForward, HIGH);
digitalWrite(RightMotorBackward, HIGH);

digitalWrite(LeftMotorBackward, LOW);
digitalWrite(RightMotorForward, LOW);

delay(500);

digitalWrite(LeftMotorForward, HIGH);
digitalWrite(RightMotorForward, HIGH);

digitalWrite(LeftMotorBackward, LOW);
digitalWrite(RightMotorBackward, LOW);
}

void turnLeft(){

digitalWrite(LeftMotorBackward, HIGH);
digitalWrite(RightMotorForward, HIGH);

digitalWrite(LeftMotorForward, LOW);
digitalWrite(RightMotorBackward, LOW);

delay(500);

digitalWrite(LeftMotorForward, HIGH);
digitalWrite(RightMotorForward, HIGH);

digitalWrite(LeftMotorBackward, LOW);
digitalWrite(RightMotorBackward, LOW);
}

 #define moveStop()
 #define moveForward()
 #define moveBackward()
 #define turnLeft()
 #define turnRight()
// ...

void moveStop(){
  // ...
}

void moveForward(){
  // ...
}

void moveBackward(){
  // ...
}

void turnRight(){
  //...
}

void turnLeft(){
  // ...
}

What on earth is this?

Please use [code][/code] tags when posting code.

Pieter

if (distance_Front<=distance);{

All of those if statements that end with a semicolon are not going to work right.