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.
disable line in the for loop of main:
*if (scoreitemendptr == scoreitemstr || scoreitemendptr != '\0') { exit(EXITFAILURE); }
I found that the last int of case 7 in string format is "99811Q", which means the last char is not '\0'. (note: 99811 in int, which is correct.) So the statement check above exit with failure error.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Breaking the Records
You are viewing a single comment's thread. Return to all comments →
disable line in the for loop of main: *if (scoreitemendptr == scoreitemstr || scoreitemendptr != '\0') { exit(EXITFAILURE); }
I found that the last int of case 7 in string format is "99811Q", which means the last char is not '\0'. (note: 99811 in int, which is correct.) So the statement check above exit with failure error.