Language: C

int fast_pow(long long base, long long n,long long M)
{
    if(n==0)
       return 1;
    if(n==1)
    return base;
    long long halfn=fast_pow(base,n/2,M);
    if(n%2==0)
        return ( halfn * halfn ) % M;
    else
        return ( ( ( halfn * halfn ) % M ) * base ) % M;
}
int findMMI_fermat(int n,int M)
{
    return fast_pow(n,M-2,M);
}
int main()
{
    long long fact[100001];
    fact[0]=1;
    int i=1;
    int MOD=1000000007;
    while(i&lt;=100000)
    {
        fact[i]=(fact[i-1]*i)%MOD;
        i++;
    }
    while(1)
    {
        int n,r;
        printf(&quot;Enter n: &quot;);
        scanf(&quot; %d&quot;,&amp;n);
        printf(&quot;Enter r: &quot;);
        scanf(&quot; %d&quot;,&amp;r);
        long long numerator,denominator,mmi_denominator,ans;
        numerator=fact[n];
        denominator=(fact[r]*fact[n-r])%MOD;
        mmi_denominator=findMMI_fermat(denominator,MOD);
        ans=(numerator*mmi_denominator)%MOD;
        printf(&quot;%lld\n&quot;,ans);
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:23:13: error: 'lt' undeclared (first use in this function)
   23 |     while(i&lt;=100000)
      |             ^~
main.c:23:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:23:15: error: expected ')' before ';' token
   23 |     while(i&lt;=100000)
      |          ~    ^
      |               )
main.c:31:9: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   31 |         printf(&quot;Enter n: &quot;);
      |         ^~~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'printf'
  +++ |+#include <stdio.h>
    1 | int fast_pow(long long base, long long n,long long M)
main.c:31:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   31 |         printf(&quot;Enter n: &quot;);
      |         ^~~~~~
main.c:31:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:31:17: error: 'quot' undeclared (first use in this function)
   31 |         printf(&quot;Enter n: &quot;);
      |                 ^~~~
main.c:31:21: error: expected ')' before ';' token
   31 |         printf(&quot;Enter n: &quot;);
      |               ~     ^
      |                     )
main.c:32:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
   32 |         scanf(&quot; %d&quot;,&amp;n);
      |         ^~~~~
main.c:32:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:32:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
main.c:32:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:32:20: error: expected ')' before ';' token
   32 |         scanf(&quot; %d&quot;,&amp;n);
      |              ~     ^
      |                    )
main.c:33:21: error: expected ')' before ';' token
   33 |         printf(&quot;Enter r: &quot;);
      |               ~     ^
      |                     )
main.c:34:20: error: expected ')' before ';' token
   34 |         scanf(&quot; %d&quot;,&amp;r);
      |              ~     ^
      |                    )
main.c:40:21: error: expected ')' before ';' token
   40 |         printf(&quot;%lld\n&quot;,ans);
      |               ~     ^
      |                     )
main.c:40:26: error: stray '\' in program
   40 |         printf(&quot;%lld\n&quot;,ans);
      |                          ^