not able to declare array of size 1000000 after using long long int
pl. check my code give correct result for 100000 size array
Not able to get a 1000000 size array
hello @lakshaygarg128
there is no need of long long (for both the arrays),everything is under the range of int so use int only .this will consume less memory.
1 Like
still getting same error
if still u r getting any error,
then declare ur both array as global and then try
1 Like
ok wait i m checking
1 Like
check ur code here ->
i have just replaced long long with int
1 Like
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.