Thanks for replying!
I’ve changed that and now it works. It gives me a warning tho : “format ‘%d’ expects a matching ‘int *’ argument [-Wformat=]” . And it still marks the same place as being the problem…
img… apperantly everything in the code is alright, i just dont know how to use the programme so i got other that im more familiarized with and it worked…
thx everyone