Why is the error?
hello @garganshul151
value of n can be upto 10^9.
and u cannot declare array of that big size.
so use map in place of array.
dont know how to use map. .
also how map works here it is not key value?
use n as key and answer corresponding to n as value.
i have declared map inside it long,long…error is saying map doesnot name a type?
refer this->