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_22288417_2550.cpp:4:9: error: #include expects "FILENAME" or <FILENAME>
 #include
         ^
0_0_22288417_2550.cpp:11:8: error: redeclaration of 'int& query::nbsp'
     int l, r, num;
        ^
0_0_22288417_2550.cpp:11:2: note: previous declaration 'int& query::nbsp'
     int l, r, num;
  ^
0_0_22288417_2550.cpp:11:14: error: redeclaration of 'int& query::nbsp'
     int l, r, num;
              ^
0_0_22288417_2550.cpp:11:2: note: previous declaration 'int& query::nbsp'
     int l, r, num;
  ^
0_0_22288417_2550.cpp:11:20: error: redeclaration of 'int& query::nbsp'
     int l, r, num;
                    ^
0_0_22288417_2550.cpp:11:2: note: previous declaration 'int& query::nbsp'
     int l, r, num;
  ^
0_0_22288417_2550.cpp:12:2: error: redeclaration of 'int& query::nbsp'
     bool operator<(const query& a)const{
  ^
0_0_22288417_2550.cpp:11:2: note: previous declaration 'int& query::nbsp'
     int l, r, num;
  ^
0_0_22288417_2550.cpp:12:8: error: redeclaration of 'int& query::nbsp'
     bool operator<(const query& a)const{
        ^
0_0_22288417_2550.cpp:11:2: note: previous declaration 'int& query::nbsp'
     int l, r, num;
  ^
0_0_22288417_2550.cpp:12:14: error: redeclaration of 'int& query::nbsp'
     bool operator<(const query& a)const{
              ^
0_0_22288417_2550.cpp:11:2: note: previous declaration 'int& query::nbsp'
     int l, r, num;
  ^
0_0_22288417_2550.cpp:12:20: error: redeclaration of 'int& query::nbsp'
     bool operator<(const query& a)const{
                    ^
0_0_22288417_2550.cpp:11:2: note: previous declaration 'int& query::nbsp'
     int l, r, num;
  ^
0_0_22288417_2550.cpp:15:5: error: use of deleted function 'query::query()'
 }q[N];
     ^
0_0_22288417_2550.cpp:10:8: note: 'query::query()' is implicitly deleted because the default definition would be ill-formed:
 struct query{
        ^
0_0_22288417_2550.cpp:10:8: error: uninitialized reference member in 'struct query'
0_0_22288417_2550.cpp:11:2: note: 'int& query::nbsp' should be initialized
     int l, r, num;
  ^
0_0_22288417_2550.cpp:17:6: error: expected constructor, destructor, or type conversion before ';' token
  
      ^
0_0_22288417_2550.cpp:21:6: error: expected constructor, destructor, or type conversion before ';' token
  
      ^
0_0_22288417_2550.cpp: In function 'void add(int, int)':
0_0_22288417_2550.cpp:24:2: error: 'nbsp' was not declared in this scope
     while(pos){
  ^
0_0_22288417_2550.cpp: In function 'int getsum(int)':
0_0_22288417_2550.cpp:30:2: error: 'nbsp' was not declared in this scope
     int ans = 0;
  ^
0_0_22288417_2550.cpp: At global scope:
0_0_22288417_2550.cpp:37:6: error: expected constructor, destructor, or type conversion before ';' token
  
      ^
0_0_22288417_2550.cpp: In function 'void init()':
0_0_22288417_2550.cpp:39:2: error: 'nbsp' was not declared in this scope
     for(int i = 2; i < N; i++)
  ^
0_0_22288417_2550.cpp:40:61: error: 'i' was not declared in this scope
         for(int j = i; j < N; j+=i)
                                                             ^
0_0_22288417_2550.cpp:41:79: error: 'j' was not declared in this scope
             prime[j].push_back(i);
                                                                               ^
0_0_22288417_2550.cpp:41:92: error: 'i' was not declared in this scope
             prime[j].push_back(i);
                                                                                            ^
0_0_22288417_2550.cpp: In function 'int main()':
0_0_22288417_2550.cpp:44:2: error: 'nbsp' was not declared in this scope
     int i, j;
  ^
0_0_22288417_2550.cpp:77:73: error: 'else' without a previous 'if'
             else
                                                                         ^
0_0_22288417_2550.cpp:85:64: error: 'sort' was not declared in this scope
         sort(q+1, q+m+1);
                                                                ^


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-29 11:52:29, Gzip enabled