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_21493312_24752.cpp:6:20: error: expected ']' before ';' token
 #define maxn 1e6+10;
                    ^
0_0_21493312_24752.cpp:8:12: note: in expansion of macro 'maxn'
 bool visit[maxn]= {0};
            ^
0_0_21493312_24752.cpp:8:16: error: expected unqualified-id before ']' token
 bool visit[maxn]= {0};
                ^
0_0_21493312_24752.cpp:6:20: error: expected ']' before ';' token
 #define maxn 1e6+10;
                    ^
0_0_21493312_24752.cpp:9:11: note: in expansion of macro 'maxn'
 int prime[maxn];
           ^
0_0_21493312_24752.cpp:9:15: error: expected unqualified-id before ']' token
 int prime[maxn];
               ^
0_0_21493312_24752.cpp:6:20: error: expected ']' before ';' token
 #define maxn 1e6+10;
                    ^
0_0_21493312_24752.cpp:11:15: note: in expansion of macro 'maxn'
 long long cnt[maxn],former[maxn];
               ^
0_0_21493312_24752.cpp:11:19: error: expected unqualified-id before ']' token
 long long cnt[maxn],former[maxn];
                   ^
0_0_21493312_24752.cpp:11:32: error: expected unqualified-id before ']' token
 long long cnt[maxn],former[maxn];
                                ^
0_0_21493312_24752.cpp: In function 'void init()':
0_0_21493312_24752.cpp:17:24: error: expected primary-expression before ';' token
     for(int i=2; i<maxn; i++)
                        ^
0_0_21493312_24752.cpp:17:24: error: expected ')' before ';' token
0_0_21493312_24752.cpp:17:26: error: 'i' was not declared in this scope
     for(int i=2; i<maxn; i++)
                          ^
0_0_21493312_24752.cpp: In function 'int main()':
0_0_21493312_24752.cpp:41:34: error: 'cnt' was not declared in this scope
         for(int i=0; i<=r-l; i++)cnt[i]=1,former[i]=i+l;
                                  ^
0_0_21493312_24752.cpp:41:43: error: 'former' was not declared in this scope
         for(int i=0; i<=r-l; i++)cnt[i]=1,former[i]=i+l;
                                           ^
0_0_21493312_24752.cpp:43:22: error: 'prime' was not declared in this scope
         for(int i=0; prime[i]*prime[i]<=r; i++)
                      ^
0_0_21493312_24752.cpp:49:24: error: 'former' was not declared in this scope
                 while((former[j-l]%prime[i])==0)
                        ^
0_0_21493312_24752.cpp:54:17: error: 'cnt' was not declared in this scope
                 cnt[j-l]*=(tmp*k+1)%mod;
                 ^
0_0_21493312_24752.cpp:61:16: error: 'former' was not declared in this scope
             if(former[i]!=1)
                ^
0_0_21493312_24752.cpp:62:26: error: 'cnt' was not declared in this scope
                 ans=ans+(cnt[i]*(k+1))%mod;
                          ^
0_0_21493312_24752.cpp:63:26: error: 'cnt' was not declared in this scope
             else ans=ans+cnt[i];
                          ^


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-10-02 01:48:22, Gzip enabled