Why does it show core dump error? On other ide it got passed
@Prashant-Kumar-1947183015386369,
You can not make that big array. 10^6 * 10^6 = 10^{12} bytes = 1TB,
What is the way out then? Input size is given to be 10^6, I need a do array of that size…