F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_19222748_16121.cpp:14:13: error: expected unqualified-id before 'if'
 int i,j;    if (c[k][n]!=0) return c[k][n];    __int64 temp,ans;    for(i=n-k+1;i<=n;i++) a[i]=i;    for(i=1;i<=k;i++) b[i]=i;    for(i=1;i<=k;i++)      for(j=n-k+1;j<=n;j++)            {               temp=gcd(b[i],a[j]);               b[i]/=temp;               a[j]/=temp;            }         ans=1;        for(i=n-k+1;i<=n;i++)            ans=ans*a[i]%MOD;        c[k][n]=ans;        return ans;}int min(int x,int y){    if (x<y) return x;    else return y;}
             ^
0_0_19222748_16121.cpp:14:69: error: expected unqualified-id before 'for'
 int i,j;    if (c[k][n]!=0) return c[k][n];    __int64 temp,ans;    for(i=n-k+1;i<=n;i++) a[i]=i;    for(i=1;i<=k;i++) b[i]=i;    for(i=1;i<=k;i++)      for(j=n-k+1;j<=n;j++)            {               temp=gcd(b[i],a[j]);               b[i]/=temp;               a[j]/=temp;            }         ans=1;        for(i=n-k+1;i<=n;i++)            ans=ans*a[i]%MOD;        c[k][n]=ans;        return ans;}int min(int x,int y){    if (x<y) return x;    else return y;}
                                                                     ^
0_0_19222748_16121.cpp:14:81: error: 'i' does not name a type
 int i,j;    if (c[k][n]!=0) return c[k][n];    __int64 temp,ans;    for(i=n-k+1;i<=n;i++) a[i]=i;    for(i=1;i<=k;i++) b[i]=i;    for(i=1;i<=k;i++)      for(j=n-k+1;j<=n;j++)            {               temp=gcd(b[i],a[j]);               b[i]/=temp;               a[j]/=temp;            }         ans=1;        for(i=n-k+1;i<=n;i++)            ans=ans*a[i]%MOD;        c[k][n]=ans;        return ans;}int min(int x,int y){    if (x<y) return x;    else return y;}
                                                                                 ^
0_0_19222748_16121.cpp:14:86: error: 'i' does not name a type
 int i,j;    if (c[k][n]!=0) return c[k][n];    __int64 temp,ans;    for(i=n-k+1;i<=n;i++) a[i]=i;    for(i=1;i<=k;i++) b[i]=i;    for(i=1;i<=k;i++)      for(j=n-k+1;j<=n;j++)            {               temp=gcd(b[i],a[j]);               b[i]/=temp;               a[j]/=temp;            }         ans=1;        for(i=n-k+1;i<=n;i++)            ans=ans*a[i]%MOD;        c[k][n]=ans;        return ans;}int min(int x,int y){    if (x<y) return x;    else return y;}
                                                                                      ^
0_0_19222748_16121.cpp:14:102: error: expected unqualified-id before 'for'
 int i,j;    if (c[k][n]!=0) return c[k][n];    __int64 temp,ans;    for(i=n-k+1;i<=n;i++) a[i]=i;    for(i=1;i<=k;i++) b[i]=i;    for(i=1;i<=k;i++)      for(j=n-k+1;j<=n;j++)            {               temp=gcd(b[i],a[j]);               b[i]/=temp;               a[j]/=temp;            }         ans=1;        for(i=n-k+1;i<=n;i++)            ans=ans*a[i]%MOD;        c[k][n]=ans;        return ans;}int min(int x,int y){    if (x<y) return x;    else return y;}
                                                                                                      ^
0_0_19222748_16121.cpp:14:110: error: 'i' does not name a type
 int i,j;    if (c[k][n]!=0) return c[k][n];    __int64 temp,ans;    for(i=n-k+1;i<=n;i++) a[i]=i;    for(i=1;i<=k;i++) b[i]=i;    for(i=1;i<=k;i++)      for(j=n-k+1;j<=n;j++)            {               temp=gcd(b[i],a[j]);               b[i]/=temp;               a[j]/=temp;            }         ans=1;        for(i=n-k+1;i<=n;i++)            ans=ans*a[i]%MOD;        c[k][n]=ans;        return ans;}int min(int x,int y){    if (x<y) return x;    else return y;}
                                                                                                              ^
0_0_19222748_16121.cpp:14:115: error: 'i' does not name a type
 int i,j;    if (c[k][n]!=0) return c[k][n];    __int64 temp,ans;    for(i=n-k+1;i<=n;i++) a[i]=i;    for(i=1;i<=k;i++) b[i]=i;    for(i=1;i<=k;i++)      for(j=n-k+1;j<=n;j++)            {               temp=gcd(b[i],a[j]);               b[i]/=temp;               a[j]/=temp;            }         ans=1;        for(i=n-k+1;i<=n;i++)            ans=ans*a[i]%MOD;        c[k][n]=ans;        return ans;}int min(int x,int y){    if (x<y) return x;    else return y;}
                                                                                                                   ^
0_0_19222748_16121.cpp:14:131: error: expected unqualified-id before 'for'
 int i,j;    if (c[k][n]!=0) return c[k][n];    __int64 temp,ans;    for(i=n-k+1;i<=n;i++) a[i]=i;    for(i=1;i<=k;i++) b[i]=i;    for(i=1;i<=k;i++)      for(j=n-k+1;j<=n;j++)            {               temp=gcd(b[i],a[j]);               b[i]/=temp;               a[j]/=temp;            }         ans=1;        for(i=n-k+1;i<=n;i++)            ans=ans*a[i]%MOD;        c[k][n]=ans;        return ans;}int min(int x,int y){    if (x<y) return x;    else return y;}
                                                                                                                                   ^
0_0_19222748_16121.cpp:14:139: error: 'i' does not name a type
 int i,j;    if (c[k][n]!=0) return c[k][n];    __int64 temp,ans;    for(i=n-k+1;i<=n;i++) a[i]=i;    for(i=1;i<=k;i++) b[i]=i;    for(i=1;i<=k;i++)      for(j=n-k+1;j<=n;j++)            {               temp=gcd(b[i],a[j]);               b[i]/=temp;               a[j]/=temp;            }         ans=1;        for(i=n-k+1;i<=n;i++)            ans=ans*a[i]%MOD;        c[k][n]=ans;        return ans;}int min(int x,int y){    if (x<y) return x;    else return y;}
                                                                                                                                           ^
0_0_19222748_16121.cpp:14:144: error: 'i' does not name a type
 int i,j;    if (c[k][n]!=0) return c[k][n];    __int64 temp,ans;    for(i=n-k+1;i<=n;i++) a[i]=i;    for(i=1;i<=k;i++) b[i]=i;    for(i=1;i<=k;i++)      for(j=n-k+1;j<=n;j++)            {               temp=gcd(b[i],a[j]);               b[i]/=temp;               a[j]/=temp;            }         ans=1;        for(i=n-k+1;i<=n;i++)            ans=ans*a[i]%MOD;        c[k][n]=ans;        return ans;}int min(int x,int y){    if (x<y) return x;    else return y;}
                                                                                                                                                ^
0_0_19222748_16121.cpp:14:166: error: 'j' does not name a type
 int i,j;    if (c[k][n]!=0) return c[k][n];    __int64 temp,ans;    for(i=n-k+1;i<=n;i++) a[i]=i;    for(i=1;i<=k;i++) b[i]=i;    for(i=1;i<=k;i++)      for(j=n-k+1;j<=n;j++)            {               temp=gcd(b[i],a[j]);               b[i]/=temp;               a[j]/=temp;            }         ans=1;        for(i=n-k+1;i<=n;i++)            ans=ans*a[i]%MOD;        c[k][n]=ans;        return ans;}int min(int x,int y){    if (x<y) return x;    else return y;}
                                                                                                                                                                      ^
0_0_19222748_16121.cpp:14:171: error: 'j' does not name a type
 int i,j;    if (c[k][n]!=0) return c[k][n];    __int64 temp,ans;    for(i=n-k+1;i<=n;i++) a[i]=i;    for(i=1;i<=k;i++) b[i]=i;    for(i=1;i<=k;i++)      for(j=n-k+1;j<=n;j++)            {               temp=gcd(b[i],a[j]);               b[i]/=temp;               a[j]/=temp;            }         ans=1;        for(i=n-k+1;i<=n;i++)            ans=ans*a[i]%MOD;        c[k][n]=ans;        return ans;}int min(int x,int y){    if (x<y) return x;    else return y;}
                                                                                                                                                                           ^
0_0_19222748_16121.cpp:14:297: error: 'ans' does not name a type
 int i,j;    if (c[k][n]!=0) return c[k][n];    __int64 temp,ans;    for(i=n-k+1;i<=n;i++) a[i]=i;    for(i=1;i<=k;i++) b[i]=i;    for(i=1;i<=k;i++)      for(j=n-k+1;j<=n;j++)            {               temp=gcd(b[i],a[j]);               b[i]/=temp;               a[j]/=temp;            }         ans=1;        for(i=n-k+1;i<=n;i++)            ans=ans*a[i]%MOD;        c[k][n]=ans;        return ans;}int min(int x,int y){    if (x<y) return x;    else return y;}
                                                                                                                                                                                                                                                                                                         ^
0_0_19222748_16121.cpp:14:311: error: expected unqualified-id before 'for'
 int i,j;    if (c[k][n]!=0) return c[k][n];    __int64 temp,ans;    for(i=n-k+1;i<=n;i++) a[i]=i;    for(i=1;i<=k;i++) b[i]=i;    for(i=1;i<=k;i++)      for(j=n-k+1;j<=n;j++)            {               temp=gcd(b[i],a[j]);               b[i]/=temp;               a[j]/=temp;            }         ans=1;        for(i=n-k+1;i<=n;i++)            ans=ans*a[i]%MOD;        c[k][n]=ans;        return ans;}int min(int x,int y){    if (x<y) return x;    else return y;}
                                                                                                                                                                                                                                                                                                                       ^
0_0_19222748_16121.cpp:14:323: error: 'i' does not name a type
 int i,j;    if (c[k][n]!=0) return c[k][n];    __int64 temp,ans;    for(i=n-k+1;i<=n;i++) a[i]=i;    for(i=1;i<=k;i++) b[i]=i;    for(i=1;i<=k;i++)      for(j=n-k+1;j<=n;j++)            {               temp=gcd(b[i],a[j]);               b[i]/=temp;               a[j]/=temp;            }         ans=1;        for(i=n-k+1;i<=n;i++)            ans=ans*a[i]%MOD;        c[k][n]=ans;        return ans;}int min(int x,int y){    if (x<y) return x;    else return y;}
                                                                                                                                                       


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-06-29 08:39:10, Gzip enabled