I am writing a simple program of linear search on vscode on macOS. The code is producing an error called segmentation fault only in vscode. But the strange thing is that cod