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
Doubt in questionn
Hey @ashishnnnnn
comment them 
// #ifndef ONLINE_JUDGE
// freopen(“input.txt”,“r”,stdin);
// freopen(“output.txt”,“w”,stdout);
// #endif
Only use them when mentioned 
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:)
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.