+ 1
Need help with passing multidimentional array to function.
Hello all. Can anyone help me to the error showing in the following code for "crime_detect function"? I guess it is something with the array. Without function it works fine. https://code.sololearn.com/cMP2S0iwDGgB/?ref=app
7 Réponses
+ 2
You need to use arr instead of log in crime_detect. Log is only defined in main
+ 1
You are not passing enough arguments to crime_detect and the function signature should be void crime_detect(int a, int arr[][4])
+ 1
This works for me: void crime_detect(int a, string log[][4])
+ 1
Good job on solving the challenge
0
Max Could you see now? still error.
0
Max I have changed it to srtring array [][4] now... but still error. arr in main is declared as int arr [100]
0
Opps.. thank you Max . It is working now.. 🤗