Queen's Attack II Discussions | Algorithms | HackerRank
We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
im getting a segmentation fault while im doing in c language..........if i take 2D array size as 100x100 then my code is passing 5 test cases.....and remaining test cases are writting a compiler message as segmentation fault..........if increase the size of 2D array to 10000x10000 then all the test cases are failing and returing a compiler message as segmentation fault...and for last i tried to declare the array as dynamically, if i do that then i got comlier message as subscripted value is neither array nor pointer nor vector this is the message i got from the compiler while i tried to use dynamically to declare a 2D array..........can you sort out from this one...
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Queen's Attack II
You are viewing a single comment's thread. Return to all comments →
im getting a segmentation fault while im doing in c language..........if i take 2D array size as 100x100 then my code is passing 5 test cases.....and remaining test cases are writting a compiler message as segmentation fault..........if increase the size of 2D array to 10000x10000 then all the test cases are failing and returing a compiler message as segmentation fault...and for last i tried to declare the array as dynamically, if i do that then i got comlier message as subscripted value is neither array nor pointer nor vector this is the message i got from the compiler while i tried to use dynamically to declare a 2D array..........can you sort out from this one...