0_0_31122223_22711.cpp:5:9: error: '__int64_t' does not name a type
typedef __int64_t ll;
^
0_0_31122223_22711.cpp:6:1: error: 'll' does not name a type
ll ring[1000005];
^
0_0_31122223_22711.cpp:8:1: error: 'll' does not name a type
ll qpow(ll a, ll b,ll c)
^
0_0_31122223_22711.cpp:21:1: error: 'll' does not name a type
ll phi(ll n)
^
0_0_31122223_22711.cpp: In function 'int main(int, char**)':
0_0_31122223_22711.cpp:42:3: error: 'll' was not declared in this scope
ll ans=0;
^
0_0_31122223_22711.cpp:43:6: error: expected ';' before 'b'
ll b,p,M;
^
0_0_31122223_22711.cpp:44:25: error: 'b' was not declared in this scope
scanf("%lld%lld%lld",&b,&p,&M);
^
0_0_31122223_22711.cpp:44:28: error: 'p' was not declared in this scope
scanf("%lld%lld%lld",&b,&p,&M);
^
0_0_31122223_22711.cpp:44:31: error: 'M' was not declared in this scope
scanf("%lld%lld%lld",&b,&p,&M);
^
0_0_31122223_22711.cpp:53:6: error: expected ';' before 'fac'
ll fac=1;
^
0_0_31122223_22711.cpp:54:6: error: expected ';' before 'i'
ll i;
^
0_0_31122223_22711.cpp:55:7: error: 'i' was not declared in this scope
for(i=0;i<=M && fac<phi(p);i++)
^
0_0_31122223_22711.cpp:55:19: error: 'fac' was not declared in this scope
for(i=0;i<=M && fac<phi(p);i++)
^
0_0_31122223_22711.cpp:55:28: error: 'phi' was not declared in this scope
for(i=0;i<=M && fac<phi(p);i++)
^
0_0_31122223_22711.cpp:57:21: error: 'qpow' was not declared in this scope
if(qpow(i, fac, p)==b)
^
0_0_31122223_22711.cpp:58:5: error: 'ans' was not declared in this scope
ans++;
^
0_0_31122223_22711.cpp:61:3: error: 'fac' was not declared in this scope
fac=fac%phi(p);
^
0_0_31122223_22711.cpp:61:16: error: 'phi' was not declared in this scope
fac=fac%phi(p);
^
0_0_31122223_22711.cpp:62:8: error: 'i' was not declared in this scope
for(;i<=M && fac;i++)
^
0_0_31122223_22711.cpp:64:28: error: 'qpow' was not declared in this scope
if(qpow(i, fac+phi(p), p)==b)
^
0_0_31122223_22711.cpp:65:5: error: 'ans' was not declared in this scope
ans++;
^
0_0_31122223_22711.cpp:68:6: error: expected ';' before 'cnt'
ll cnt=-1;
^
0_0_31122223_22711.cpp:69:6: error: 'i' was not declared in this scope
if(i<=M)
^
0_0_31122223_22711.cpp:72:5: error: 'ring' was not declared in this scope
ring[++cnt]=qpow(i+j, phi(p), p);
^
0_0_31122223_22711.cpp:72:12: error: 'cnt' was not declared in this scope
ring[++cnt]=qpow(i+j, phi(p), p);
^
0_0_31122223_22711.cpp:72:36: error: 'qpow' was not declared in this scope
ring[++cnt]=qpow(i+j, phi(p), p);
^
0_0_31122223_22711.cpp:74:4: error: 'ans' was not declared in this scope
ans+=(M-i+1)/p;
^
0_0_31122223_22711.cpp:75:7: error: expected ';' before 'k'
ll k=(M-i+1)%p;
^
0_0_31122223_22711.cpp:76:18: error: 'k' was not declared in this scope
for(int j=0;j<k;j++)
^
0_0_31122223_22711.cpp:78:8: error: 'ring' was not declared in this scope
if(ring[j]==b)
^
0_0_31122223_22711.cpp:82:33: error: 'ans' was not declared in this scope
printf("Case #%d: %lld\n",cas,ans);
^
|