Schleifen- und Ausführungsfehler

Liebes Calliope-Forum,

ich habe ein schwerwiegendes Problem mit einem relativ komplexen Programm. Wenn ich versuche, es auszuführen, kommt folgender Fehler:
[1/3] Building the Zahlenreihenspiel. In file included from /opt/ora-cc-rsc/RobotMbed/libs2017//ble/ble/GattClient.h:22, from /opt/ora-cc-rsc/RobotMbed/libs2017//ble/ble/BLE.h:23, from /opt/ora-cc-rsc/RobotMbed/libs2017//microbit-dal/inc/bluetooth/MicroBitBLEManager.h:42, from /opt/ora-cc-rsc/RobotMbed/libs2017//microbit/inc/MicroBit.h:69, from /tmp/openrobertaTmp/7-f5S-6BWdi_/Zahlenreihenspiel/source/Zahlenreihenspiel.cpp:3: /opt/ora-cc-rsc/RobotMbed/libs2017//ble/ble/ServiceDiscovery.h: In member function 'virtual ble_error_t ServiceDiscovery::reset()': /opt/ora-cc-rsc/RobotMbed/libs2017//ble/ble/ServiceDiscovery.h:148:77: warning: implicitly-declared 'UUID& UUID::operator=(const UUID&)' is deprecated [-Wdeprecated-copy] 148 | matchingServiceUUID = UUID::ShortUUIDBytes_t(BLE_UUID_UNKNOWN); | ^ In file included from /opt/ora-cc-rsc/RobotMbed/libs2017//ble/ble/GattService.h:20, from /opt/ora-cc-rsc/RobotMbed/libs2017//ble/ble/GattServer.h:21, from /opt/ora-cc-rsc/RobotMbed/libs2017//ble/ble/BLE.h:22, from /opt/ora-cc-rsc/RobotMbed/libs2017//microbit-dal/inc/bluetooth/MicroBitBLEManager.h:42, from /opt/ora-cc-rsc/RobotMbed/libs2017//microbit/inc/MicroBit.h:69, from /tmp/openrobertaTmp/7-f5S-6BWdi_/Zahlenreihenspiel/source/Zahlenreihenspiel.cpp:3: /opt/ora-cc-rsc/RobotMbed/libs2017//ble/ble/UUID.h:164:5: note: because 'UUID' has user-provided 'UUID::UUID(const UUID&)' 164 | UUID(const UUID &source) { | ^~~~ In file included from /opt/ora-cc-rsc/RobotMbed/libs2017//ble/ble/GattClient.h:22, from /opt/ora-cc-rsc/RobotMbed/libs2017//ble/ble/BLE.h:23, from /opt/ora-cc-rsc/RobotMbed/libs2017//microbit-dal/inc/bluetooth/MicroBitBLEManager.h:42, from /opt/ora-cc-rsc/RobotMbed/libs2017//microbit/inc/MicroBit.h:69, from /tmp/openrobertaTmp/7-f5S-6BWdi_/Zahlenreihenspiel/source/Zahlenreihenspiel.cpp:3: /opt/ora-cc-rsc/RobotMbed/libs2017//ble/ble/ServiceDiscovery.h:150:77: warning: implicitly-declared 'UUID& UUID::operator=(const UUID&)' is deprecated [-Wdeprecated-copy] 150 | matchingCharacteristicUUID = UUID::ShortUUIDBytes_t(BLE_UUID_UNKNOWN); | ^ In file included from /opt/ora-cc-rsc/RobotMbed/libs2017//ble/ble/GattService.h:20, from /opt/ora-cc-rsc/RobotMbed/libs2017//ble/ble/GattServer.h:21, from /opt/ora-cc-rsc/RobotMbed/libs2017//ble/ble/BLE.h:22, from /opt/ora-cc-rsc/RobotMbed/libs2017//microbit-dal/inc/bluetooth/MicroBitBLEManager.h:42, from /opt/ora-cc-rsc/RobotMbed/libs2017//microbit/inc/MicroBit.h:69, from /tmp/openrobertaTmp/7-f5S-6BWdi_/Zahlenreihenspiel/source/Zahlenreihenspiel.cpp:3: /opt/ora-cc-rsc/RobotMbed/libs2017//ble/ble/UUID.h:164:5: note: because 'UUID' has user-provided 'UUID::UUID(const UUID&)' 164 | UUID(const UUID &source) { | ^~~~ /tmp/openrobertaTmp/7-f5S-6BWdi_/Zahlenreihenspiel/source/Zahlenreihenspiel.cpp: In function 'void menu()': /tmp/openrobertaTmp/7-f5S-6BWdi_/Zahlenreihenspiel/source/Zahlenreihenspiel.cpp:76:1: error: expected primary-expression before '}' token 76 | } | ^ Error in building !!!

Ich kann das Programm zwar auch in der Simulation ausführen, aber da wiederholt sich eine der Schleifen unendlich, was eigentlich nicht passieren sollte.

Hier ist mein Programm: https://drive.google.com/file/d/1aFhjHXKvYClok4Vr54LAla1Ggtx1KePr/view?usp=sharing

Habe ich etwas falsch erstellt? Oder ist das ein technischer Fehler?

Vielen Dank im Voraus

Die Fehlermeldung bezieht sich auf die Funktion menu. Wenn man die Endlosschleife entfernt, geht das System. Ich vermute mal, da darf keine Endlosschleife stehen, zumal du aus dem Menü nicht rauskommst. Die beiden Bausteile „Die Schleife abbrechen“ (ich mag so was gar nicht) bringen dich wahrscheinlich nur aus dem Warte bis. Dann bleibst Du aber noch immer im Wiederhole unendlich oft gefangen.