help understanding multiMap function

you cannot declare functions inside loop()

also the arrays are better declared global as they do not change

Youshould also copy the multimap() function code inside your sketch