Sir please tell me what is the mistake in this code?

include <bits/stdc++.h>

using namespace std;
int main()
{
char arr[100][100];

int row; int column ;int k; int s;
cin >> row >>column >> k >> s;

for (int i = 0; i <row ; i++) {
    for (int j = 0; j <column ; j++) {
        cin >> arr[i][j];
    }
}

bool success=true;

for (int i = 0; i <row ; i++) {

    for (int j = 0; j <column ; j++)
    {
        {
            if(s>=k)
            {


                if (arr[i][j] == '.') {
                    s -= 2;
                }
                else if(arr[i][j] == '*') {
                    s += 5;
                }
                else if (arr[i][j] == '#')
                {
                    break;
                }

                if(j!=column-1)
                {
                    s--;
                }
            }
            else
            {
                success=false;
            }
        }
    }
}
if(success)
{
    cout << "YES"<< endl << s;
}
else
{
    cout << "NO";
}

}

@sharmatarun392000 please share your code by saving it on ide.codingblocks.com

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.