@a5rocks no, everything is indented I just didnt take care about that on here when i was writing the question. Thanks for the fast reply, though!
@ThatSmart I was told i didnt need a main function, and all of the code I tried works without it. duzina means length so I dont see the problem in adding 1 to it. I wanted to write my own function for determining the length of an array.