sekUndMinString was not declared in this scope

Hi guys,
I need your help. I programing with the arduino for 2 weeks now and im such a noob in the programing as in other programing languages as well.
I have a projekt which i have to pass in in the next 2 days so pls help.

with in this code. theres everytime the error: sekUndMinString was not declared in this scope.
and i just dont get it :confused:

#include <LiquidCrystal.h>
LiquidCrystal lcd(12, 11, 10, 5, 4, 3, 2);

const byte startPin = 2, endPin = 3, fehlerPin = 4, buzzerPin = 5, strafZeitPin = 10;
const byte minStrafZeit= 1, maxStarfZeit= 15;
const String strafZeitString= "Fehler", endZeitString= "Endzeit", zeitString= "Zeit", gesamtZeit= "Gesamtzeit";
long millisStart, millisEnde;
int fehler, strafZeit, spielZeit;

void secUndMinString(int input) { // Konvertiert Sekunden in eine Minuten und Sekunden Anzeige
   String minutes = String((int)(input / 60));
   String seconds = String(input % 60); 
   if (seconds.length() == 1) 
     seconds = "0" + seconds; 
   //if (minutes.length() == 1) 
   //  minutes = "0" + minutes; 

}

void setup() {
 pinMode(startPin, INPUT); 
 pinMode(endPin, INPUT);
 pinMode(fehlerPin, INPUT);
 pinMode(buzzerPin, OUTPUT); 
 digitalWrite(buzzerPin, LOW); 
 digitalWrite(startPin, HIGH);
 digitalWrite(endPin, HIGH);
 digitalWrite(fehlerPin, HIGH);
 
 lcd.begin(16, 2);
 lcd.print("Heisser Draht"); 
 delay(2000);
 lcd.clear();
 lcd.print("Start in");
 for (int zeit=5; zeit>0; zeit-- ){ 
   delay(1000);
   lcd.setCursor(9,0);
   lcd.print(zeit);
 }
}  



void loop() {
 
 //Start des Spiels
 millisStart= millis();
 fehler = 0; 
 while (digitalRead(endPin) == HIGH) {
   
¬† ¬†// Fehler√ľberpr√ľfung
   int spielZeit=((millis()- millisStart/1000));
   int strafZeitSum= fehler * strafZeit;
   lcd.print("Zeit:");
   lcd.setCursor(6,0);
   lcd.print(sekUndMinString(spielZeit));
   lcd.setCursor(1,1);
   lcd.print("Gesamt:");
   lcd.setCursor(8,1);
   lcd.print(sekUndMinString(spielZeit + strafZeitSum));
   if (digitalRead(fehlerPin) == LOW) {
     fehler++; 
     digitalWrite(buzzerPin, HIGH); 
     int spielZeit=((millis()- millisStart/1000));
     int strafZeitSum= fehler * strafZeit;
     lcd.print("Zeit:");
     lcd.setCursor(6,0);
     lcd.print(sekUndMinString(spielZeit));
     lcd.setCursor(1,1);
     lcd.print("Gesamt:");
     lcd.setCursor(8,1);
     lcd.print(sekUndMinString(spielZeit + strafZeitSum));
     delay(500);
     digitalWrite(buzzerPin, LOW);
   }
     delay(1000); 
 }
   
 
 //Ende des Spiels
 millisEnde= millis();
 lcd.clear();
 lcd.print("Ende!");
 int spielZeit=((millis()- millisStart/1000)); 
 int strafZeitSum= fehler * strafZeit;
 lcd.print("Zeit:");
 lcd.setCursor(6,0);
 lcd.print(sekUndMinString(spielZeit));
 lcd.setCursor(1,1);
 lcd.print("Gesamt:");
 lcd.setCursor(8,1);
 lcd.print(sekUndMinString(spielZeit + strafZeitSum));
 delay(16000);

}
void zeigeStatusAufLcd () {
 int spielZeit=((millis()- millisStart/1000)); 
 int strafZeitSum= fehler * strafZeit;
 lcd.print("Zeit:");
 lcd.setCursor(6,0);
 lcd.print(sekUndMinString(spielZeit)); 
 lcd.setCursor(1,1);
 lcd.print("Gesamt:");
 lcd.setCursor(8,1);
 lcd.print(sekUndMinString(spielZeit + strafZeitSum));
}

sekUndMinString is not declared. secUndMinString is. Spelling matters.

Also, please read the posts by Nick Gammon at the top of this Forum on the proper way to post code here using code tags. (You can edit your post to use them.) It makes it easier for the rest of us to see your code using less space.

thanks, but it donest work either :frowning:

same code, but i fixed the misspell.

error: invalid use of void expression

lcd.print(sekUndMinString(spielZeit));

error: invalid use of void expression

     lcd.print(sekUndMinString(spielZeit));

So, let's see:

void secUndMinString(int input)

The function is defined to not return anything. How can you expect to print that?