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_31528403_32644.cpp:1:1: error: 'include' does not name a type
 include <bits/stdc++.h>
 ^
0_0_31528403_32644.cpp:11:9: error: 'pair' does not name a type
 typedef pair<int, int> PII;
         ^
0_0_31528403_32644.cpp:25:1: error: 'vector' does not name a type
 vector<int>E[MX];
 ^
0_0_31528403_32644.cpp: In function 'void init(int)':
0_0_31528403_32644.cpp:27:23: error: 'E' was not declared in this scope
     rep (i, 1, n + 1) E[i].clear();
                       ^
0_0_31528403_32644.cpp: At global scope:
0_0_31528403_32644.cpp:31:5: error: 'vector' does not name a type
     vector <int> T;
     ^
0_0_31528403_32644.cpp: In member function 'void Tree::init(int)':
0_0_31528403_32644.cpp:34:9: error: 'T' was not declared in this scope
         T.resize (n + 1);
         ^
0_0_31528403_32644.cpp: In member function 'void Tree::add(int, int)':
0_0_31528403_32644.cpp:38:46: error: 'T' was not declared in this scope
         for (int i = x; i <= n; i += i & -i) T[i] += v;
                                              ^
0_0_31528403_32644.cpp: In member function 'int Tree::sum(int)':
0_0_31528403_32644.cpp:43:52: error: 'T' was not declared in this scope
         for (int i = x; i > 0; i -= i & -i) ret += T[i];
                                                    ^
0_0_31528403_32644.cpp: In function 'int solve(int, ll)':
0_0_31528403_32644.cpp:52:15: error: 'E' was not declared in this scope
     rep(i, 0, E[u].size()) sum = sum * val[E[u][i]] 
               ^
0_0_31528403_32644.cpp:6:34: note: in definition of macro 'rep'
 #define rep(i,a,b) for(int i=a;i<b;++i)
                                  ^
0_0_31528403_32644.cpp:52:51: error: expected '}' at end of input
     rep(i, 0, E[u].size()) sum = sum * val[E[u][i]] 
                                                   ^


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:00:23, Gzip enabled