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_31621150_25315.cpp:57:15: error: 'siz' was not declared in this scope
 vector<int> G[siz];
               ^
0_0_31621150_25315.cpp:58:7: error: expected unqualified-id before '[' token
 int ll[siz],rr[siz],vis[siz];
       ^
0_0_31621150_25315.cpp: In function 'void dfs(int, int&)':
0_0_31621150_25315.cpp:62:7: error: expected unqualified-id before '[' token
     ll[s]=id++;
       ^
0_0_31621150_25315.cpp:63:15: error: 'G' was not declared in this scope
     for(i=0;i<G[s].size();i++)
               ^
0_0_31621150_25315.cpp:68:5: error: 'rr' was not declared in this scope
     rr[s]=id++;
     ^
0_0_31621150_25315.cpp: In function 'int main()':
0_0_31621150_25315.cpp:80:9: error: 'vis' was not declared in this scope
         vis[i]=0,G[i].clear();
         ^
0_0_31621150_25315.cpp:80:18: error: 'G' was not declared in this scope
         vis[i]=0,G[i].clear();
                  ^
0_0_31621150_25315.cpp:83:13: error: 'G' was not declared in this scope
             G[v].push_back(u);
             ^
0_0_31621150_25315.cpp:84:13: error: 'vis' was not declared in this scope
             vis[u]=1;
             ^
0_0_31621150_25315.cpp:10:12: error: expected primary-expression before 'long'
 #define ll long long
            ^
0_0_31621150_25315.cpp:86:16: note: in expansion of macro 'll'
         memset(ll,-1,sizeof(ll));
                ^
0_0_31621150_25315.cpp:87:16: error: 'rr' was not declared in this scope
         memset(rr,-1,sizeof(rr));
                ^
0_0_31621150_25315.cpp:90:12: error: 'vis' was not declared in this scope
         if(vis[i]==0)
            ^
0_0_31621150_25315.cpp:10:12: error: expected primary-expression before 'long'
 #define ll long long
            ^
0_0_31621150_25315.cpp:100:37: note: in expansion of macro 'll'
                 printf("%d\n",query(ll[u],1,2*n,1));
                                     ^
0_0_31621150_25315.cpp:10:12: error: expected primary-expression before 'long'
 #define ll long long
            ^
0_0_31621150_25315.cpp:105:24: note: in expansion of macro 'll'
                 change(ll[u],rr[u],v,1,2*n,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-07-03 11:58:32, Gzip enabled