C:\Users\AlexanderKunz\AppData\Local\Arduino15\RemoteSketchbook\ArduinoCloud\8d8c85ae-a2f5-4129-8187-2c33ce68e30f\Schallrobot_v1.1\Schallrobot_v1.1.ino: In function 'void loop()':
C:\Users\AlexanderKunz\AppData\Local\Arduino15\RemoteSketchbook\ArduinoCloud\8d8c85ae-a2f5-4129-8187-2c33ce68e30f\Schallrobot_v1.1\Schallrobot_v1.1.ino:23:23: error: expected identifier before '(' token
if(distance <= 50) && ( servo_13.read() == 135) {
^
C:\Users\AlexanderKunz\AppData\Local\Arduino15\RemoteSketchbook\ArduinoCloud\8d8c85ae-a2f5-4129-8187-2c33ce68e30f\Schallrobot_v1.1\Schallrobot_v1.1.ino:34:23: error: expected identifier before '(' token
if(distance <= 50) && ( servo_13.read() == 45) {
^
C:\Users\AlexanderKunz\AppData\Local\Arduino15\RemoteSketchbook\ArduinoCloud\8d8c85ae-a2f5-4129-8187-2c33ce68e30f\Schallrobot_v1.1\Schallrobot_v1.1.ino: At global scope:
C:\Users\AlexanderKunz\AppData\Local\Arduino15\RemoteSketchbook\ArduinoCloud\8d8c85ae-a2f5-4129-8187-2c33ce68e30f\Schallrobot_v1.1\Schallrobot_v1.1.ino:49:13: error: expected constructor, destructor, or type conversion before '(' token
digitalWrite(12,HIGH);
^
C:\Users\AlexanderKunz\AppData\Local\Arduino15\RemoteSketchbook\ArduinoCloud\8d8c85ae-a2f5-4129-8187-2c33ce68e30f\Schallrobot_v1.1\Schallrobot_v1.1.ino:50:13: error: expected constructor, destructor, or type conversion before '(' token
digitalWrite(11,HIGH);
^
C:\Users\AlexanderKunz\AppData\Local\Arduino15\RemoteSketchbook\ArduinoCloud\8d8c85ae-a2f5-4129-8187-2c33ce68e30f\Schallrobot_v1.1\Schallrobot_v1.1.ino:54:1: error: 'servo_13' does not name a type
servo_13.write(45);
^~~~~~~~
C:\Users\AlexanderKunz\AppData\Local\Arduino15\RemoteSketchbook\ArduinoCloud\8d8c85ae-a2f5-4129-8187-2c33ce68e30f\Schallrobot_v1.1\Schallrobot_v1.1.ino:55:6: error: expected constructor, destructor, or type conversion before '(' token
delay(600);
^
C:\Users\AlexanderKunz\AppData\Local\Arduino15\RemoteSketchbook\ArduinoCloud\8d8c85ae-a2f5-4129-8187-2c33ce68e30f\Schallrobot_v1.1\Schallrobot_v1.1.ino:56:1: error: 'servo_13' does not name a type
servo_13.write(135);
^~~~~~~~
C:\Users\AlexanderKunz\AppData\Local\Arduino15\RemoteSketchbook\ArduinoCloud\8d8c85ae-a2f5-4129-8187-2c33ce68e30f\Schallrobot_v1.1\Schallrobot_v1.1.ino:57:6: error: expected constructor, destructor, or type conversion before '(' token
delay(600);
^
C:\Users\AlexanderKunz\AppData\Local\Arduino15\RemoteSketchbook\ArduinoCloud\8d8c85ae-a2f5-4129-8187-2c33ce68e30f\Schallrobot_v1.1\Schallrobot_v1.1.ino:58:1: error: expected declaration before '}' token
}
^
exit status 1
Compilation error: expected identifier before '(' token
Cross-posting is against the Arduino forum rules. The reason is that duplicate posts can waste the time of the people trying to help. Someone might spend a lot of time investigating and writing a detailed answer on one topic, without knowing that someone else already did the same in the other topic.
Repeated cross-posting can result in a suspension from the forum.
In the future, please only create one topic for each distinct subject matter. This is basic forum etiquette, as explained in the "How to get the best out of this forum" guide. It contains a lot of other useful information. Please read it.
Placement is another story As mentioned by @UKHeliBob
@billycamaro
The closing ) in if(distance <= 50) closes the condition so that one must be moved.
Try something like if(distance <= 50 && ( servo_13.read() == 135))