Unidentified error in code

i’m unable to find error in the code for pair sum problem
here is the code:

hello @vketan182
image

use n-1 in place of size of .
because sizeof will always give u 1000 (because ur array size is 1000)

still not showing any output

initialise i=0 … … …

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.