Https://ide.codingblocks.com/#/s/29441

https://ide.codingblocks.com/#/s/29441

What’s the error? How to pass the 2d array?

There are lot of mistakes in your code. The search function has return type int, so it must be stored in some int or you can directly use cout<<search…
To take input o two-d array you can even simply use search (int a[n][m],… ), where mentioning n is optional, but m is necessary.

still giving error
https://ide.codingblocks.com/#/s/29547