_ Indent your code
_ Modularize
_ Duck debug (especially lines 12,13,37,49,55,58)
_ Don't "optimize"
Can someone give some correction?
For example instead of
int A[N];
int B[N];
memset(A,0,sizeof(A));
memset(B,0,sizeof(B));
you could write
int A[N] = {};
int B[N] = {};
:)
I corrected so, but it still have bug
Sorry but i do not understand what your function does and have no any desire to investigate such a bad code.
Good luck!
Last edited on