#include<stdio.h>
void main()
{
int i = -1, j = 1,k,l;
k=!i&&j;
l= !i||j;
printf("\n%d\n%d",i,j);
}
shows in output: Runtime error time: 0 memory: 10304 signal:-1
but if i replace void by int and add return 0 in program it works fine without any error why?