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.
I think its an issue with the version of C I am using or the compiler. The code executes fine when submitted through Hackerrank. However, on my own machine, it seems that SS is stored as 00 if scanf contains %d%s for the last input. It works fine if you get rid of the string. Strange.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Time Conversion
You are viewing a single comment's thread. Return to all comments →
I think its an issue with the version of C I am using or the compiler. The code executes fine when submitted through Hackerrank. However, on my own machine, it seems that SS is stored as 00 if scanf contains %d%s for the last input. It works fine if you get rid of the string. Strange.