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

13th Jun 2021, 3:34 PM
Rishi
Rishi - avatar
1 Odpowiedź
+ 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".
13th Jun 2021, 3:41 PM
#0009e7 [get]
#0009e7 [get] - avatar