0
I'm getting monitor command dumped core error with my code in sololearn. But it works with other compilers.
I wrote a code that solves "military time" quiz in sololearn. It worked fine in other compilers but it's not working in sololearn compiler and I can't figure out why. Please help me. Thank you already🤗 https://code.sololearn.com/cDJoJZBgOc9a/?ref=app
1 Antwort
+ 2
1. strtok function is defined in string.h and you need to include it to use that function.
2. In line 16 > printf > first argument (format string): strtol returns long int, so you need to use "%ld" and not "%d".