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_19356250_26655.cpp:4:8: error: macro names must be identifiers
 #define maxn 100010  
        ^
0_0_19356250_26655.cpp:5:8: error: macro names must be identifiers
 #define p 33  
        ^
0_0_19356250_26655.cpp:6:6: error: expected nested-name-specifier before '&' token
 using namespace std;  
      ^
0_0_19356250_26655.cpp:6:21: error: expected identifier before '&' token
 using namespace std;  
                     ^
0_0_19356250_26655.cpp:6:26: error: expected constructor, destructor, or type conversion before ';' token
 using namespace std;  
                          ^
0_0_19356250_26655.cpp:6:27: error: 'std' does not name a type
 using namespace std;  
                           ^
0_0_19356250_26655.cpp:6:36: error: expected constructor, destructor, or type conversion before ';' token
 using namespace std;  
                                    ^
0_0_19356250_26655.cpp:6:42: error: expected constructor, destructor, or type conversion before ';' token
 using namespace std;  
                                          ^
0_0_19356250_26655.cpp:7:23: error: 'unsigned int& nbsp' redeclared as different kind of symbol
 typedef unsigned long long ll;  
                       ^
0_0_19356250_26655.cpp:7:9: note: previous declaration 'typedef int& nbsp'
 typedef unsigned long long ll;  
         ^
0_0_19356250_26655.cpp:7:33: error: 'long int& nbsp' redeclared as different kind of symbol
 typedef unsigned long long ll;  
                                 ^
0_0_19356250_26655.cpp:7:9: note: previous declaration 'typedef int& nbsp'
 typedef unsigned long long ll;  
         ^
0_0_19356250_26655.cpp:7:43: error: 'long int& nbsp' redeclared as different kind of symbol
 typedef unsigned long long ll;  
                                           ^
0_0_19356250_26655.cpp:7:9: note: previous declaration 'typedef int& nbsp'
 typedef unsigned long long ll;  
         ^
0_0_19356250_26655.cpp:7:48: error: 'll' does not name a type
 typedef unsigned long long ll;  
                                                ^
0_0_19356250_26655.cpp:7:56: error: expected constructor, destructor, or type conversion before ';' token
 typedef unsigned long long ll;  
                                                        ^
0_0_19356250_26655.cpp:7:62: error: expected constructor, destructor, or type conversion before ';' token
 typedef unsigned long long ll;  
                                                              ^
0_0_19356250_26655.cpp:8:7: error: expected identifier before '&' token
 struct Tree{  
       ^
0_0_19356250_26655.cpp:8:12: error: invalid type in declaration before ';' token
 struct Tree{  
            ^
0_0_19356250_26655.cpp:8:12: error: 'int& nbsp' redeclared as different kind of symbol
0_0_19356250_26655.cpp:7:9: note: previous declaration 'typedef int& nbsp'
 typedef unsigned long long ll;  
         ^
0_0_19356250_26655.cpp:8:13: error: 'Tree' does not name a type
 struct Tree{  
             ^
0_0_19356250_26655.cpp:11:2: error: 'tree' does not name a type
 }tree[300000];  
  ^
0_0_19356250_26655.cpp:11:20: error: expected constructor, destructor, or type conversion before ';' token
 }tree[300000];  
                    ^
0_0_19356250_26655.cpp:11:26: error: expected constructor, destructor, or type conversion before ';' token
 }tree[300000];  
                          ^
0_0_19356250_26655.cpp:12:6: error: 'char& nbsp' redeclared as different kind of symbol
 char str[2000100];  
      ^
0_0_19356250_26655.cpp:7:9: note: previous declaration 'typedef int& nbsp'
 typedef unsigned long long ll;  
         ^
0_0_19356250_26655.cpp:12:11: error: 'str' does not name a type
 char str[2000100];  
           ^
0_0_19356250_26655.cpp:12:29: error: expected constructor, destructor, or type conversion before ';' token
 char str[2000100];  
                             ^
0_0_19356250_26655.cpp:12:35: error: expected constructor, destructor, or type conversion before ';' token
 char str[2000100];  
                                   ^
0_0_19356250_26655.cpp:13:1: error: 'll' does not name a type
 ll hh[maxn];  
 ^
0_0_19356250_26655.cpp:13:9: error: 'hh' does not name a type
 ll hh[maxn];  
         ^
0_0_19356250_26655.cpp:13:23: error: expected constructor, destructor, or type conversion before ';' token
 ll hh[maxn];  
                       ^
0_0_19356250_26655.cpp:13:29: error: expected constructor, destructor, or type conversion before ';' token
 ll hh[maxn];  
                             ^
0_0_19356250_26655.cpp:14:6: error: cannot declare reference to 'void'
 void init(){  
      ^
0_0_19356250_26655.cpp:14:6: error: variable or field 'nbsp' declared void
0_0_19356250_26655.cpp: In function 'int init()':
0_0_19356250_26655.cpp:14:23: error: expected primary-expression before ';' token
 void init(){  
                       ^
0_0_19356250_26655.cpp:14:29: error: expected primary-expression before ';' token
 void init(){  
                             ^
0_0_19356250_26655.cpp:15:6: error: expected primary-expression before ';' token
     int i;  
      ^
0_0_19356250_26655.cpp:15:12: error: expected primary-expression before ';' token
     int i;  
            ^
0_0_19356250_26655.cpp:15:18: error: expected primary-expression before ';' token
     int i;  
                  ^
0_0_19356250_26655.cpp:15:24: error: expected primary-expression before ';' token
     int i;  
                        ^
0_0_19356250_26655.cpp:15:29: error: 'nbsp' declared as reference but not initialized
     int i;  
                             ^
0_0_19356250_26655.cpp:15:34: error: 'i' was not declared in this scope
     int i;  
                                  ^
0_0_19356250_26655.cpp:16:25: error: 'hh' was not declared in this scope
     hh[0]=1;  
                         ^
0_0_19356250_26655.cpp:17:36: error: 'maxn' was not declared in this scope
     for(i=1;i<=maxn;i++)  
                                    ^
0_0_19356250_26655.cpp:18:63: error: 'p' was not declared in this scope
         hh[i]=hh[i-1]*p;  
                                                               ^
0_0_19356250_26655.cpp: At global scope:
0_0_19356250_26655.cpp:19:7: error: expected constructor, destructor, or type conversion before ';' token
 }  
       ^
0_0_19356250_26655.cpp:19:13: error: expected constructor, destructor, or type conversion before ';' token
 }  
             ^
0_0_19356250_26655.cpp:20:1: error: 'll' does not name a type
 ll calhash(){  
 ^
0_0_19356250_26655.cpp: In function 'int calhash()':
0_0_19356250_26655.cpp:20:24: error: expected primary-expression before ';' token
 ll calhash(){  
                        ^
0_0_19356250_26655.cpp:20:30: error: expected primary-expression before ';' token
 ll calhash(){  
                              ^
0_0_19356250_26655.cpp:21:6: error: expected primary-expression before ';' token
     int i,len=strlen(str);  
      ^
0_0_19356250_26655.cpp:21:12: error: expected primary-expression before ';' token
     int i,len=strlen(str);  
            ^
0_0_19356250_26655.cpp:21:18: error: expected primary-expression before ';' token
     int i,len=strlen(str);  
                  ^
0_0_19356250_26655.cpp:21:24: error: expected primary-expression before ';' token
     int i,len=strlen(str);  
                        ^
0_0_19356250_26655.cpp:21:29: error: 'nbsp' declared as reference but not initialized
     int i,len=strlen(str);  
                             ^
0_0_19356250_26655.cpp:21:34: error: 'i' was not declared in this scope
     int i,len=strlen(str);  
                                  ^
0_0_19356250_26655.cpp:21:36: error: 'len' was not declared in this scope
     int i,len=strlen(str);  
                                    ^
0_0_19356250_26655.cpp:21:47: error: 'str' was not declared in this scope
     int i,len=strlen(str);  
                                               ^
0_0_19356250_26655.cpp:22:25: error: 'll' was not declared in this scope
     ll sum=0;  
                         ^
0_0_19356250_26655.cpp:22:33: error: 'sum' was not declared in this scope
     ll sum=0;  
                     


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-09-29 21:21:04, Gzip enabled