Language: C++

#include <bits/stdc++.h>
#define pb push_back
#define INF 0x3f3f3f3
#define LINF 0x3f3f3f3f3f3f3f
#define MAXN int(10e3+3)
#define MOD ll(10e9+7)
#define fim '\n'
#define ll long long
#define f first
#define s second
#define debug(x) cout << "DEBUG " << x << endl
using namespace std;
typedef pair<int, int> pii;

char m[MAXN][MAXN];
ll dp[MAXN][MAXN];
int l, c;
int x[] = {1, 0};
int y[] = {0, 1};

ll solve(int i, int j) {
    if(i == l-1 && j == c-1) return dp[i][j] = 1;
    
    if(dp[i][j] != -1) return dp[i][j]%MOD;
    
    ll ans = 0;
    
    for(int k = 0; k < 2; k++) 
        if(i+x[k] < l && j+y[k] < c && m[i+x[k]][j+y[k]] != '#') ans += (solve(i+x[k], j+y[k]))%MOD;
    
    return dp[i][j] = ans%MOD;
}

int main(){
    cin.tie(NULL);
    cout.tie(NULL);
    ios::sync_with_stdio(false);
    cin >> l >> c;
    memset(dp, -1, sizeof dp);
    for(int i = 1; i <= l; i++)
        for(int j = 1; j <= c; j++)
            cin >> m[i][j];
    for(int i = 1
    cout << solve(0, 0)%MOD << fim;
}


Compiler output:
a.cc: In function 'long long int solve(int, int)':
a.cc:8:12: error: expected primary-expression before 'long'
    8 | #define ll long long
      |            ^~~~
a.cc:6:13: note: in expansion of macro 'll'
    6 | #define MOD ll(10e9+7)
      |             ^~
a.cc:24:40: note: in expansion of macro 'MOD'
   24 |     if(dp[i][j] != -1) return dp[i][j]%MOD;
      |                                        ^~~
a.cc:24:40: error: expected ';' before 'long'
   24 |     if(dp[i][j] != -1) return dp[i][j]%MOD;
      |                                        ^
      |                                        ;
a.cc:8:12: error: expected primary-expression before 'long'
    8 | #define ll long long
      |            ^~~~
a.cc:6:13: note: in expansion of macro 'll'
    6 | #define MOD ll(10e9+7)
      |             ^~
a.cc:24:40: note: in expansion of macro 'MOD'
   24 |     if(dp[i][j] != -1) return dp[i][j]%MOD;
      |                                        ^~~
a.cc:8:12: error: expected primary-expression before 'long'
    8 | #define ll long long
      |            ^~~~
a.cc:6:13: note: in expansion of macro 'll'
    6 | #define MOD ll(10e9+7)
      |             ^~
a.cc:29:97: note: in expansion of macro 'MOD'
   29 |         if(i+x[k] < l && j+y[k] < c && m[i+x[k]][j+y[k]] != '#') ans += (solve(i+x[k], j+y[k]))%MOD;
      |                                                                                                 ^~~
a.cc:8:12: error: expected primary-expression before 'long'
    8 | #define ll long long
      |            ^~~~
a.cc:6:13: note: in expansion of macro 'll'
    6 | #define MOD ll(10e9+7)
      |             ^~
a.cc:31:27: note: in expansion of macro 'MOD'
   31 |     return dp[i][j] = ans%MOD;
      |                           ^~~
a.cc:31:27: error: expected ';' before 'long'
   31 |     return dp[i][j] = ans%MOD;
      |                           ^
      |                           ;
a.cc:8:12: error: expected primary-expression before 'long'
    8 | #define ll long long
      |            ^~~~
a.cc:6:13: note: in expansion of macro 'll'
    6 | #define MOD ll(10e9+7)
      |             ^~
a.cc:31:27: note: in expansion of macro 'MOD'
   31 |     return dp[i][j] = ans%MOD;
      |                           ^~~
a.cc: In function 'int main()':
a.cc:43:18: error: expected ';' before 'cout'
   43 |     for(int i = 1
      |                  ^
      |                  ;
   44 |     cout << solve(0, 0)%MOD << fim;
      |     ~~~~          
a.cc:8:12: error: expected primary-expression before 'long'
    8 | #define ll long long
      |            ^~~~
a.cc:6:13: note: in expansion of macro 'll'
    6 | #define MOD ll(10e9+7)
      |             ^~
a.cc:44:25: note: in expansion of macro 'MOD'
   44 |     cout << solve(0, 0)%MOD << fim;
      |                         ^~~
a.cc:44:25: error: expected ';' before 'long'
   44 |     cout << solve(0, 0)%MOD << fim;
      |                         ^
      |                         ;
a.cc:8:12: error: expected primary-expression before 'long'
    8 | #define ll long long
      |            ^~~~
a.cc:6:13: note: in expansion of macro 'll'
    6 | #define MOD ll(10e9+7)
      |             ^~
a.cc:44:25: note: in expansion of macro 'MOD'
   44 |     cout << solve(0, 0)%MOD << fim;
      |                         ^~~
a.cc:44:25: error: expected ')' before 'long'
   44 |     cout << solve(0, 0)%MOD << fim;
      |                         ^
      |                         )
a.cc:43:8: note: to match this '('
   43 |     for(int i = 1
      |        ^
a.cc:8:12: error: expected primary-expression before 'long'
    8 | #define ll long long
      |            ^~~~
a.cc:6:13: note: in expansion of macro 'll'
    6 | #define MOD ll(10e9+7)
      |             ^~
a.cc:44:25: note: in expansion of macro 'MOD'
   44 |     cout << solve(0, 0)%MOD << fim;
      |                         ^~~