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_32866968_1725.cpp:1:7: error: stray '#' in program
 <code>#include<bits/stdc++.h>
       ^
0_0_32866968_1725.cpp:1:1: error: expected unqualified-id before '<' token
 <code>#include<bits/stdc++.h>
 ^
0_0_32866968_1725.cpp:8:9: error: 'pair' does not name a type
 typedef pair<int,int> pii;
         ^
0_0_32866968_1725.cpp: In member function 'void SegmentTree::update(int&, int, int, int, int, int)':
0_0_32866968_1725.cpp:40:45: error: 'max' was not declared in this scope
         if(L<=l&&r<=R){tag[k]=max(tag[k],val);return;}
                                             ^
0_0_32866968_1725.cpp: In member function 'int SegmentTree::query(int, int, int, int)':
0_0_32866968_1725.cpp:49:59: error: 'max' was not declared in this scope
         if(x<=mid)return max(query(lson[k],x,l,mid),tag[k]);
                                                           ^
0_0_32866968_1725.cpp:50:56: error: 'max' was not declared in this scope
         else return max(query(rson[k],x,mid+1,r),tag[k]);
                                                        ^
0_0_32866968_1725.cpp: At global scope:
0_0_32866968_1725.cpp:56:1: error: 'string' does not name a type
 string P[N];
 ^
0_0_32866968_1725.cpp:58:1: error: 'vector' does not name a type
 vector<pii>Qry[N];int Ans[N];
 ^
0_0_32866968_1725.cpp:72:20: error: 'string' has not been declared
 void insert(int &k,string &str,int id)
                    ^
0_0_32866968_1725.cpp: In function 'void insert(int&, int&, int)':
0_0_32866968_1725.cpp:76:17: error: request for member 'length' in 'str', which is of non-class type 'int'
     FOR(i,0,str.length()-1)
                 ^
0_0_32866968_1725.cpp:2:42: note: in definition of macro 'FOR'
 #define FOR(i,x,y) for(int i=(x),i##END=(y);i<=i##END;++i)
                                          ^
0_0_32866968_1725.cpp:78:38: error: invalid types 'int[int]' for array subscript
         create(ch[now][c_d[(int)str[i]]]);
                                      ^
0_0_32866968_1725.cpp:79:35: error: invalid types 'int[int]' for array subscript
         now=ch[now][c_d[(int)str[i]]];
                                   ^
0_0_32866968_1725.cpp: In function 'void get_fail()':
0_0_32866968_1725.cpp:86:5: error: 'queue' was not declared in this scope
     queue<int>Q;
     ^
0_0_32866968_1725.cpp:86:11: error: expected primary-expression before 'int'
     queue<int>Q;
           ^
0_0_32866968_1725.cpp:87:12: error: 'Q' was not declared in this scope
     while(!Q.empty())Q.pop();
            ^
0_0_32866968_1725.cpp:91:38: error: 'Q' was not declared in this scope
         if(ch[rt][i])f[ch[rt][i]]=rt,Q.push(ch[rt][i]);
                                      ^
0_0_32866968_1725.cpp:94:12: error: 'Q' was not declared in this scope
     while(!Q.empty())
            ^
0_0_32866968_1725.cpp: At global scope:
0_0_32866968_1725.cpp:110:18: error: 'string' has not been declared
 void query(int k,string &str,vector<pii>&vec)
                  ^
0_0_32866968_1725.cpp:110:30: error: 'vector' has not been declared
 void query(int k,string &str,vector<pii>&vec)
                              ^
0_0_32866968_1725.cpp:110:36: error: expected ',' or '...' before '<' token
 void query(int k,string &str,vector<pii>&vec)
                                    ^
0_0_32866968_1725.cpp: In function 'void query(int, int&, int)':
0_0_32866968_1725.cpp:115:17: error: request for member 'length' in 'str', which is of non-class type 'int'
     FOR(i,0,str.length()-1)
                 ^
0_0_32866968_1725.cpp:2:42: note: in definition of macro 'FOR'
 #define FOR(i,x,y) for(int i=(x),i##END=(y);i<=i##END;++i)
                                          ^
0_0_32866968_1725.cpp:117:35: error: invalid types 'int[int]' for array subscript
         now=ch[now][c_d[(int)str[i]]];
                                   ^
0_0_32866968_1725.cpp:120:18: error: 'vec' was not declared in this scope
     FOR(i,0,(int)vec.size()-1)Ans[vec[i].y]=ST.query(ST.rt,vec[i].x,1,tot);
                  ^
0_0_32866968_1725.cpp:2:42: note: in definition of macro 'FOR'
 #define FOR(i,x,y) for(int i=(x),i##END=(y);i<=i##END;++i)
                                          ^
0_0_32866968_1725.cpp: In function 'int main()':
0_0_32866968_1725.cpp:126:30: error: 'scanf' was not declared in this scope
     while(~scanf("%d%d",&n,&q))
                              ^
0_0_32866968_1725.cpp:129:19: error: 'Qry' was not declared in this scope
         FOR(i,1,n)Qry[i].clear();
                   ^
0_0_32866968_1725.cpp:132:13: error: 'cin' was not declared in this scope
             cin>>P[i];
             ^
0_0_32866968_1725.cpp:132:18: error: 'P' was not declared in this scope
             cin>>P[i];
                  ^
0_0_32866968_1725.cpp:143:13: error: 'Qry' was not declared in this scope
             Qry[b].push_back(pii(L[idx[a]],i));
             ^
0_0_32866968_1725.cpp:143:45: error: 'pii' was not declared in this scope
             Qry[b].push_back(pii(L[idx[a]],i));
                                             ^
0_0_32866968_1725.cpp:145:28: error: 'P' was not declared in this scope
         FOR(i,1,n)query(rt,P[i],Qry[i]);
                            ^
0_0_32866968_1725.cpp:145:33: error: 'Qry' was not declared in this scope
         FOR(i,1,n)query(rt,P[i],Qry[i]);
                                 ^
0_0_32866968_1725.cpp:146:39: error: 'printf' was not declared in this scope
         FOR(i,1,q)printf("%d\n",Ans[i]);
                                       ^
0_0_32866968_1725.cpp: In instantiation of 'void Linked_list<maxn, maxm>::clear() [with int maxn = 100005; int maxm = 100005]':
0_0_32866968_1725.cpp:128:17:   required from here
0_0_32866968_1725.cpp:16:45: error: 'memset' was not declared in this scope
     void clear(){memset(head,-1,sizeof(head));tot=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-11-30 03:33:34, Gzip enabled