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_29474166_13208.cpp:1:9: error: #include expects "FILENAME" or <FILENAME>
 #include <iostream>
         ^
0_0_29474166_13208.cpp:2:9: error: #include expects "FILENAME" or <FILENAME>
 #include <algorithm>
         ^
0_0_29474166_13208.cpp:3:9: error: #include expects "FILENAME" or <FILENAME>
 #include <cmath>
         ^
0_0_29474166_13208.cpp:4:9: error: #include expects "FILENAME" or <FILENAME>
 #include <assert.h>
         ^
0_0_29474166_13208.cpp:5:6: error: expected nested-name-specifier before '&' token
 using namespace std;
      ^
0_0_29474166_13208.cpp:5:21: error: expected identifier before '&' token
 using namespace std;
                     ^
0_0_29474166_13208.cpp:5:26: error: expected constructor, destructor, or type conversion before ';' token
 using namespace std;
                          ^
0_0_29474166_13208.cpp:5:27: error: 'std' does not name a type
 using namespace std;
                           ^
0_0_29474166_13208.cpp:7:5: error: 'nbsp' declared as reference but not initialized
 int divisor[1000001];//divisor[i]记录着i的一个非平凡质因数,如果i是质数则divisor[i]=0;
     ^
0_0_29474166_13208.cpp:7:10: error: 'divisor' does not name a type
 int divisor[1000001];//divisor[i]记录着i的一个非平凡质因数,如果i是质数则divisor[i]=0;
          ^
0_0_29474166_13208.cpp:8:5: error: redefinition of 'int& nbsp'
 int dp[1000001];//dp[i]为i的非1因子的和
     ^
0_0_29474166_13208.cpp:7:5: note: 'int& nbsp' previously declared here
 int divisor[1000001];//divisor[i]记录着i的一个非平凡质因数,如果i是质数则divisor[i]=0;
     ^
0_0_29474166_13208.cpp:8:10: error: 'dp' does not name a type
 int dp[1000001];//dp[i]为i的非1因子的和
          ^
0_0_29474166_13208.cpp:9:5: error: redefinition of 'int& nbsp'
 int f[1000001];//f[i]为i的真因子的和
     ^
0_0_29474166_13208.cpp:7:5: note: 'int& nbsp' previously declared here
 int divisor[1000001];//divisor[i]记录着i的一个非平凡质因数,如果i是质数则divisor[i]=0;
     ^
0_0_29474166_13208.cpp:9:10: error: 'f' does not name a type
 int f[1000001];//f[i]为i的真因子的和
          ^
0_0_29474166_13208.cpp:11:6: error: cannot declare reference to 'void'
 void init()
      ^
0_0_29474166_13208.cpp:11:6: error: variable or field 'nbsp' declared void
0_0_29474166_13208.cpp: In function 'int init()':
0_0_29474166_13208.cpp:14:33: error: 'nbsp' declared as reference but not initialized
     for(int i=2;i<=1000;i++){
                                 ^
0_0_29474166_13208.cpp:14:38: error: 'i' was not declared in this scope
     for(int i=2;i<=1000;i++){
                                      ^
0_0_29474166_13208.cpp:14:49: error: expected ')' before ';' token
     for(int i=2;i<=1000;i++){
                                                 ^
0_0_29474166_13208.cpp:14:50: error: 'i' was not declared in this scope
     for(int i=2;i<=1000;i++){
                                                  ^
0_0_29474166_13208.cpp:22:33: error: 'nbsp' declared as reference but not initialized
     for(int i=2;i<=1000000;i++){
                                 ^
0_0_29474166_13208.cpp:22:52: error: expected ')' before ';' token
     for(int i=2;i<=1000000;i++){
                                                    ^
0_0_29474166_13208.cpp:36:25: error: 'f' was not declared in this scope
     f[1]=0;
                         ^
0_0_29474166_13208.cpp:37:33: error: 'nbsp' declared as reference but not initialized
     for(int i=2;i<=1000000;i++){
                                 ^
0_0_29474166_13208.cpp:37:52: error: expected ')' before ';' token
     for(int i=2;i<=1000000;i++){
                                                    ^
0_0_29474166_13208.cpp: At global scope:
0_0_29474166_13208.cpp:43:6: error: conflicting declaration 'int*& nbsp'
 int* binary(int* b,int* e,int x)
      ^
0_0_29474166_13208.cpp:7:5: note: previous declaration as 'int& nbsp'
 int divisor[1000001];//divisor[i]记录着i的一个非平凡质因数,如果i是质数则divisor[i]=0;
     ^
0_0_29474166_13208.cpp:43:27: error: expected ')' before ';' token
 int* binary(int* b,int* e,int x)
                           ^
0_0_29474166_13208.cpp:43:27: error: expected constructor, destructor, or type conversion before ';' token
0_0_29474166_13208.cpp:43:28: error: 'b' does not name a type
 int* binary(int* b,int* e,int x)
                            ^
0_0_29474166_13208.cpp:43:40: error: 'e' does not name a type
 int* binary(int* b,int* e,int x)
                                        ^
0_0_29474166_13208.cpp:43:51: error: 'x' does not name a type
 int* binary(int* b,int* e,int x)
                                                   ^
0_0_29474166_13208.cpp:58:5: error: redefinition of 'int& nbsp'
 int main()
     ^
0_0_29474166_13208.cpp:7:5: note: 'int& nbsp' previously declared here
 int divisor[1000001];//divisor[i]记录着i的一个非平凡质因数,如果i是质数则divisor[i]=0;
     ^
0_0_29474166_13208.cpp: In function 'int main()':
0_0_29474166_13208.cpp:61:30: error: 'f' was not declared in this scope
     sort(f+1,f+1000000+1);
                              ^
0_0_29474166_13208.cpp:61:45: error: 'sort' was not declared in this scope
     sort(f+1,f+1000000+1);
                                             ^
0_0_29474166_13208.cpp:62:29: error: 'nbsp' declared as reference but not initialized
     int m,cnt;
                             ^
0_0_29474166_13208.cpp:62:34: error: 'm' was not declared in this scope
     int m,cnt;
                                  ^
0_0_29474166_13208.cpp:62:36: error: 'cnt' was not declared in this scope
     int m,cnt;
                                    ^
0_0_29474166_13208.cpp:63:44: error: 'scanf' was not declared in this scope
     while(scanf("%d",&m)!=EOF){
                                            ^
0_0_29474166_13208.cpp:63:47: error: 'EOF' was not declared in this scope
     while(scanf("%d",&m)!=EOF){
                                               ^
0_0_29474166_13208.cpp:64:77: error: 'binary' was not declared in this scope
         cnt=binary(f+1,f+1000000+1,m)-(f+1);
                                                                             ^
0_0_29474166_13208.cpp:65:65: error: 'printf' was not declared in this scope
         printf("%d ",cnt);
                                                                 ^


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-23 02:57:27, Gzip enabled