Interviewbit Codedrift 2.0 August Problem - Covid 20?

Contest link

if anyone can solve or look into it,please.
My solution doesn’t pass all testcases,

Contest & problem : Interviewbit Codedrift 2.0 August Problem - Covid 20?

int Solution::calculateCells(int n, int b, int c) {
    long long tot[n+5];
    long long mod=1000000007;
    for(int i=1;i<n;i++)
        int val=(c-1)/b;
        for(int j=1;j<=val;j++)
            tot[i+j*b]=(tot[i]+ tot[i+j*b])%mod;
            else break;
   long long sum=0LL;
   for(int i=0;i<min(c,n);i++)
    return sum;

I was halfway into coding when I saw this-

I was logged in with your account, and I could do actually do whatever I pleased with it.
Kindly do not share links in such a way that might harm u or others


I was unaware, they have some bug in their web design. I replaced it with contest link.
I would appreciate if you help me out. Thanks in advance.