what is difference between rem==0 and rem=0 in this code? : <p>THEY WERE ASKING ME TO ADD SOMETHING
.I DINT KNOW WHAT TO ADD.THIS LINE IS A WASTE.
SUGGEST ME AN EDIT</p>

<p>#include 
    using namespace std;</p>

<pre><code>typedef long long lli;

lli mod = 1000000007;

int n;
char a[200000 + 10];
lli dp[200000 + 10][9];

lli solve(int pos, int rem)
{
    if (pos == n) //**HERE** 
        return (rem == 0);

    if (dp[pos][rem] != -1)
        return dp[pos][rem];

    dp[pos][rem] = 0;
    if (pos + 1 &lt;= n)
        dp[pos][rem] = solve(pos + 1, (rem * 10 + (a[pos] - '0')) % 8);
    if (pos + 1 &lt;= n)
        dp[pos][rem] += solve(pos + 1, rem);
    dp[pos][rem] %= mod;

    return dp[pos][rem];
}
</code></pre>
