sir what is wrong with this??
Assigning value to a vector
@khushipriya681 hey khushi ok I can again tell you about syntax associated with your code
in the first loop you have to take a input variable which is used to take some input and that input will push into the vector and the syntax of the vector is v.push_back(k);
and then nested loop of j will start from j=i; not with j=i+1 if you are declaring like this the subarray 1 and last subarray 5 will be eliminate so apply suggestion to debug the code