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_20614607_5914.cpp:2:25: error: stray '#' in program
     using namespace std;#define prt(k) cerr<<#k" = "<<k<<endltypedef long long ll;const int inf = 0x3f3f3f3f;const ll mod = 1e9 + 7;const int N = 1000100;ll p[N];ll a[N];bool ok(ll n){    int t = p[n];    while (n % t==0 && n > 1) n /= t;    return n==1;}ll pmod(ll a, ll n){    ll ret = 1;    for (; n; n>>=1, a=a*a%mod) if (n & 1)        ret = ret * a % mod;    return ret;}ll inv(ll a){    return pmod(a, mod - 2);}int main(){    for (int i=1;i<N;i++) p[i]=i;    for (int i=2;i<N;i++) if (p[i]==i) {        for (int j=i+i;j<N;j+=i) p[j] = i;    }    a[0] = 1;    for (int i=1;i<N;i++) {        if (ok(i))            a[i] = a[i-1] * p[i] % mod;        else            a[i] = a[i-1];    }    int n; int re; cin>>re;    while (re--) {        scanf("%d", &n);        n++;        ll ans = a[n] * inv(n) % mod;        printf("%I64d\n", ans);    }}
                         ^
0_0_20614607_5914.cpp:2:46: error: stray '#' in program
     using namespace std;#define prt(k) cerr<<#k" = "<<k<<endltypedef long long ll;const int inf = 0x3f3f3f3f;const ll mod = 1e9 + 7;const int N = 1000100;ll p[N];ll a[N];bool ok(ll n){    int t = p[n];    while (n % t==0 && n > 1) n /= t;    return n==1;}ll pmod(ll a, ll n){    ll ret = 1;    for (; n; n>>=1, a=a*a%mod) if (n & 1)        ret = ret * a % mod;    return ret;}ll inv(ll a){    return pmod(a, mod - 2);}int main(){    for (int i=1;i<N;i++) p[i]=i;    for (int i=2;i<N;i++) if (p[i]==i) {        for (int j=i+i;j<N;j+=i) p[j] = i;    }    a[0] = 1;    for (int i=1;i<N;i++) {        if (ok(i))            a[i] = a[i-1] * p[i] % mod;        else            a[i] = a[i-1];    }    int n; int re; cin>>re;    while (re--) {        scanf("%d", &n);        n++;        ll ans = a[n] * inv(n) % mod;        printf("%I64d\n", ans);    }}
                                              ^
0_0_20614607_5914.cpp:2:26: error: 'define' does not name a type
     using namespace std;#define prt(k) cerr<<#k" = "<<k<<endltypedef long long ll;const int inf = 0x3f3f3f3f;const ll mod = 1e9 + 7;const int N = 1000100;ll p[N];ll a[N];bool ok(ll n){    int t = p[n];    while (n % t==0 && n > 1) n /= t;    return n==1;}ll pmod(ll a, ll n){    ll ret = 1;    for (; n; n>>=1, a=a*a%mod) if (n & 1)        ret = ret * a % mod;    return ret;}ll inv(ll a){    return pmod(a, mod - 2);}int main(){    for (int i=1;i<N;i++) p[i]=i;    for (int i=2;i<N;i++) if (p[i]==i) {        for (int j=i+i;j<N;j+=i) p[j] = i;    }    a[0] = 1;    for (int i=1;i<N;i++) {        if (ok(i))            a[i] = a[i-1] * p[i] % mod;        else            a[i] = a[i-1];    }    int n; int re; cin>>re;    while (re--) {        scanf("%d", &n);        n++;        ll ans = a[n] * inv(n) % mod;        printf("%I64d\n", ans);    }}
                          ^
0_0_20614607_5914.cpp:2:116: error: 'll' does not name a type
     using namespace std;#define prt(k) cerr<<#k" = "<<k<<endltypedef long long ll;const int inf = 0x3f3f3f3f;const ll mod = 1e9 + 7;const int N = 1000100;ll p[N];ll a[N];bool ok(ll n){    int t = p[n];    while (n % t==0 && n > 1) n /= t;    return n==1;}ll pmod(ll a, ll n){    ll ret = 1;    for (; n; n>>=1, a=a*a%mod) if (n & 1)        ret = ret * a % mod;    return ret;}ll inv(ll a){    return pmod(a, mod - 2);}int main(){    for (int i=1;i<N;i++) p[i]=i;    for (int i=2;i<N;i++) if (p[i]==i) {        for (int j=i+i;j<N;j+=i) p[j] = i;    }    a[0] = 1;    for (int i=1;i<N;i++) {        if (ok(i))            a[i] = a[i-1] * p[i] % mod;        else            a[i] = a[i-1];    }    int n; int re; cin>>re;    while (re--) {        scanf("%d", &n);        n++;        ll ans = a[n] * inv(n) % mod;        printf("%I64d\n", ans);    }}
                                                                                                                    ^
0_0_20614607_5914.cpp:2:155: error: 'll' does not name a type
     using namespace std;#define prt(k) cerr<<#k" = "<<k<<endltypedef long long ll;const int inf = 0x3f3f3f3f;const ll mod = 1e9 + 7;const int N = 1000100;ll p[N];ll a[N];bool ok(ll n){    int t = p[n];    while (n % t==0 && n > 1) n /= t;    return n==1;}ll pmod(ll a, ll n){    ll ret = 1;    for (; n; n>>=1, a=a*a%mod) if (n & 1)        ret = ret * a % mod;    return ret;}ll inv(ll a){    return pmod(a, mod - 2);}int main(){    for (int i=1;i<N;i++) p[i]=i;    for (int i=2;i<N;i++) if (p[i]==i) {        for (int j=i+i;j<N;j+=i) p[j] = i;    }    a[0] = 1;    for (int i=1;i<N;i++) {        if (ok(i))            a[i] = a[i-1] * p[i] % mod;        else            a[i] = a[i-1];    }    int n; int re; cin>>re;    while (re--) {        scanf("%d", &n);        n++;        ll ans = a[n] * inv(n) % mod;        printf("%I64d\n", ans);    }}
                                                                                                                                                           ^
0_0_20614607_5914.cpp:2:163: error: 'll' does not name a type
     using namespace std;#define prt(k) cerr<<#k" = "<<k<<endltypedef long long ll;const int inf = 0x3f3f3f3f;const ll mod = 1e9 + 7;const int N = 1000100;ll p[N];ll a[N];bool ok(ll n){    int t = p[n];    while (n % t==0 && n > 1) n /= t;    return n==1;}ll pmod(ll a, ll n){    ll ret = 1;    for (; n; n>>=1, a=a*a%mod) if (n & 1)        ret = ret * a % mod;    return ret;}ll inv(ll a){    return pmod(a, mod - 2);}int main(){    for (int i=1;i<N;i++) p[i]=i;    for (int i=2;i<N;i++) if (p[i]==i) {        for (int j=i+i;j<N;j+=i) p[j] = i;    }    a[0] = 1;    for (int i=1;i<N;i++) {        if (ok(i))            a[i] = a[i-1] * p[i] % mod;        else            a[i] = a[i-1];    }    int n; int re; cin>>re;    while (re--) {        scanf("%d", &n);        n++;        ll ans = a[n] * inv(n) % mod;        printf("%I64d\n", ans);    }}
                                                                                                                                                                   ^
0_0_20614607_5914.cpp:2:179: error: 'll' was not declared in this scope
     using namespace std;#define prt(k) cerr<<#k" = "<<k<<endltypedef long long ll;const int inf = 0x3f3f3f3f;const ll mod = 1e9 + 7;const int N = 1000100;ll p[N];ll a[N];bool ok(ll n){    int t = p[n];    while (n % t==0 && n > 1) n /= t;    return n==1;}ll pmod(ll a, ll n){    ll ret = 1;    for (; n; n>>=1, a=a*a%mod) if (n & 1)        ret = ret * a % mod;    return ret;}ll inv(ll a){    return pmod(a, mod - 2);}int main(){    for (int i=1;i<N;i++) p[i]=i;    for (int i=2;i<N;i++) if (p[i]==i) {        for (int j=i+i;j<N;j+=i) p[j] = i;    }    a[0] = 1;    for (int i=1;i<N;i++) {        if (ok(i))            a[i] = a[i-1] * p[i] % mod;        else            a[i] = a[i-1];    }    int n; int re; cin>>re;    while (re--) {        scanf("%d", &n);        n++;        ll ans = a[n] * inv(n) % mod;        printf("%I64d\n", ans);    }}
                                                                                                                                                                                   ^
0_0_20614607_5914.cpp:2:184: error: expected ',' or ';' before '{' token
     using namespace std;#define prt(k) cerr<<#k" = "<<k<<endltypedef long long ll;const int inf = 0x3f3f3f3f;const ll mod = 1e9 + 7;const int N = 1000100;ll p[N];ll a[N];bool ok(ll n){    int t = p[n];    while (n % t==0 && n > 1) n /= t;    return n==1;}ll pmod(ll a, ll n){    ll ret = 1;    for (; n; n>>=1, a=a*a%mod) if (n & 1)        ret = ret * a % mod;    return ret;}ll inv(ll a){    return pmod(a, mod - 2);}int main(){    for (int i=1;i<N;i++) p[i]=i;    for (int i=2;i<N;i++) if (p[i]==i) {        for (int j=i+i;j<N;j+=i) p[j] = i;    }    a[0] = 1;    for (int i=1;i<N;i++) {        if (ok(i))            a[i] = a[i-1] * p[i] % mod;        else            a[i] = a[i-1];    }    int n; int re; cin>>re;    while (re--) {        scanf("%d", &n);        n++;        ll ans = a[n] * inv(n) % mod;        printf("%I64d\n", ans);    }}
                                                                                                                                                                                        ^
0_0_20614607_5914.cpp:2:256: error: 'll' does not name a type
     using namespace std;#define prt(k) cerr<<#k" = "<<k<<endltypedef long long ll;const int inf = 0x3f3f3f3f;const ll mod = 1e9 + 7;const int N = 1000100;ll p[N];ll a[N];bool ok(ll n){    int t = p[n];    while (n % t==0 && n > 1) n /= t;    return n==1;}ll pmod(ll a, ll n){    ll ret = 1;    for (; n; n>>=1, a=a*a%mod) if (n & 1)        ret = ret * a % mod;    return ret;}ll inv(ll a){    return pmod(a, mod - 2);}int main(){    for (int i=1;i<N;i++) p[i]=i;    for (int i=2;i<N;i++) if (p[i]==i) {        for (int j=i+i;j<N;j+=i) p[j] = i;    }    a[0] = 1;    for (int i=1;i<N;i++) {        if (ok(i))            a[i] = a[i-1] * p[i] % mod;        else            a[i] = a[i-1];    }    int n; int re; cin>>re;    while (re--) {        scanf("%d", &n);        n++;        ll ans = a[n] * inv(n) % mod;        printf("%I64d\n", ans);    }}
                                                                                                                                                                                                                                                                ^
0_0_20614607_5914.cpp:2:377: error: 'll' does not name a type
     using namespace std;#define prt(k) cerr<<#k" = "<<k<<endltypedef long long ll;const int inf = 0x3f3f3f3f;const ll mod = 1e9 + 7;const int N = 1000100;ll p[N];ll a[N];bool ok(ll n){    int t = p[n];    while (n % t==0 && n > 1) n /= t;    return n==1;}ll pmod(ll a, ll n){    ll ret = 1;    for (; n; n>>=1, a=a*a%mod) if (n & 1)        ret = ret * a % mod;    return ret;}ll inv(ll a){    return pmod(a, mod - 2);}int main(){    for (int i=1;i<N;i++) p[i]=i;    for (int i=2;i<N;i++) if (p[i]==i) {        for (int j=i+i;j<N;j+=i) p[j] = i;    }    a[0] = 1;    for (int i=1;i<N;i++) {        if (ok(i))            a[i] = a[i-1] * p[i] % mod;        else            a[i] = a[i-1];    }    int n; int re; cin>>re; 


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-11-16 23:04:42, Gzip enabled