+ 1

Why am I getting a runtime error on codechef, but not on sololearn?

The program is about merging 2 arrays in C. If some changes are to be made to the code, then please suggest. https://code.sololearn.com/cXr5D2rDqL5m/#c

12th Mar 2019, 1:00 PM
Parth Salat
Parth Salat - avatar
3 Answers
+ 1
No, I got my mistake, it was due to void main. If we use int main, then it gets successfully compiled. I'm just wondering what would be the reason behind this...
13th Mar 2019, 4:08 AM
Parth Salat
Parth Salat - avatar
0
Codechef is online judge, online judge never ask for printing text like “input size array”, instead just scanf instantly. this might be the cause
12th Mar 2019, 1:52 PM
Owenizedd
Owenizedd - avatar
0
Of course, compiler.
14th Mar 2019, 10:31 AM
Owenizedd
Owenizedd - avatar