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 Answer
+ 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".