#include <stdio.h>
// Getraenke Automat Version 0.1
int einwurf=0;
printf("Getraenke Automat | Bitte werfen sie 1 Euro ein: ");
// überpruefe Geldstueck
if(einwurf == 1) {
printf("\nVielen Dank, bitte entnehmen sie ihr Getraenk.\n"); }else {
printf("\nSie haben kein 1 Euro Stueck eingeworfen.\n"); }
I2luY2x1ZGUgPHN0ZGlvLmg+CgoKLy8gR2V0cmFlbmtlIEF1dG9tYXQgVmVyc2lvbiAwLjEKCmludCBlaW53dXJmPTA7CnByaW50ZigiR2V0cmFlbmtlIEF1dG9tYXQgfCBCaXR0ZSB3ZXJmZW4gc2llIDEgRXVybyBlaW46ICIpOwpzY2FuZigiJWQiLCAmZWlud3VyZik7CgovLyDDvGJlcnBydWVmZSBHZWxkc3R1ZWNrCmlmKGVpbnd1cmYgPT0gMSkgewoJcHJpbnRmKCJcblZpZWxlbiBEYW5rLCBiaXR0ZSBlbnRuZWhtZW4gc2llIGlociBHZXRyYWVuay5cbiIpOwp9ZWxzZSB7CglwcmludGYoIlxuU2llIGhhYmVuIGtlaW4gMSBFdXJvIFN0dWVjayBlaW5nZXdvcmZlbi5cbiIpOwp9
prog.c:7:8: error: expected declaration specifiers or '...' before string constant
printf("Getraenke Automat | Bitte werfen sie 1 Euro ein: ");
^
prog.c:8:7: error: expected declaration specifiers or '...' before string constant
scanf("%d", &einwurf);
^
prog.c:8:13: error: expected declaration specifiers or '...' before '&' token
scanf("%d", &einwurf);
^
prog.c:11:1: error: expected identifier or '(' before 'if'
if(einwurf == 1) {
^
prog.c:13:2: error: expected identifier or '(' before 'else'
}else {
^