Doubt in questionn

I am solving this question from codeforces…
https://codeforces.com/problemset/problem/1369/C
This is my solution…


I don’t know what wrong is happening in the code… It is not showing any output.
I am not able to find it.
Please see this.
Thanks

Hey @ashishnnnnn
comment them :slight_smile:

// #ifndef ONLINE_JUDGE
// freopen(“input.txt”,“r”,stdin);
// freopen(“output.txt”,“w”,stdout);
// #endif

Only use them when mentioned :slight_smile:

No… I am using this code in my sublime text.

Ok let me check then

Hii… I found where i am wrong…
After declaring vector<vector> vv;
I am doing this…

while(vv[kk].size()==fr[kk]){
kk++;
kk = kk%k;
}

without inserting any vector in original vector of vector vv.

Yeah wherever u are trying to access v[kk] make sure its already present:)

Hey @ashishnnnnn
If you dont have any other doubt in this then please mark it as resolved :slight_smile:

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.