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_31528401_7279.cpp:1:1: error: 'include' does not name a type
 include <bits/stdc++.h>
 ^
0_0_31528401_7279.cpp:11:9: error: 'pair' does not name a type
 typedef pair<int, int> PII;
         ^
0_0_31528401_7279.cpp:25:1: error: 'vector' does not name a type
 vector<int>E[MX];
 ^
0_0_31528401_7279.cpp: In function 'void init(int)':
0_0_31528401_7279.cpp:27:23: error: 'E' was not declared in this scope
     rep (i, 1, n + 1) E[i].clear();
                       ^
0_0_31528401_7279.cpp: At global scope:
0_0_31528401_7279.cpp:31:5: error: 'vector' does not name a type
     vector <int> T;
     ^
0_0_31528401_7279.cpp: In member function 'void Tree::init(int)':
0_0_31528401_7279.cpp:34:9: error: 'T' was not declared in this scope
         T.resize (n + 1);
         ^
0_0_31528401_7279.cpp: In member function 'void Tree::add(int, int)':
0_0_31528401_7279.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_31528401_7279.cpp: In member function 'int Tree::sum(int)':
0_0_31528401_7279.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_31528401_7279.cpp: In function 'int solve(int, ll)':
0_0_31528401_7279.cpp:52:15: error: 'E' was not declared in this scope
     rep(i, 0, E[u].size()) sum = sum * val[E[u][i]] % mod;
               ^
0_0_31528401_7279.cpp:6:34: note: in definition of macro 'rep'
 #define rep(i,a,b) for(int i=a;i<b;++i)
                                  ^
0_0_31528401_7279.cpp:53:12: error: 'E' was not declared in this scope
     per(i, E[u].size(), 0) {
            ^
0_0_31528401_7279.cpp:7:30: note: in definition of macro 'per'
 #define per(i,a,b) for(int i=a-1;i>=b;--i)
                              ^
0_0_31528401_7279.cpp:54:70: error: 'lower_bound' was not declared in this scope
         int nxt = lower_bound (E[u].begin(), E[u].end(), a[index + 1]) - E[u].begin();
                                                                      ^
0_0_31528401_7279.cpp: In function 'void dfs(int, int)':
0_0_31528401_7279.cpp:65:18: error: 'E' was not declared in this scope
     if (pre > 0) E[u].erase(find(E[u].begin(), E[u].end(), pre));
                  ^
0_0_31528401_7279.cpp:65:63: error: 'find' was not declared in this scope
     if (pre > 0) E[u].erase(find(E[u].begin(), E[u].end(), pre));
                                                               ^
0_0_31528401_7279.cpp:66:16: error: 'E' was not declared in this scope
     val[u] = f[E[u].size()];
                ^
0_0_31528401_7279.cpp:70:40: error: 'sort' was not declared in this scope
         sort (E[u].begin(), E[u].end() );
                                        ^
0_0_31528401_7279.cpp: In function 'int main()':
0_0_31528401_7279.cpp:82:12: error: 'cin' was not declared in this scope
     int T; cin >> T;
            ^
0_0_31528401_7279.cpp:84:24: error: 'scanf' was not declared in this scope
         scanf ("%d", &n);
                        ^
0_0_31528401_7279.cpp:90:13: error: 'E' was not declared in this scope
             E[u].push_back (
             ^
0_0_31528401_7279.cpp:90:28: error: expected primary-expression at end of input
             E[u].push_back (
                            ^
0_0_31528401_7279.cpp:90:28: error: expected '}' at end of input
0_0_31528401_7279.cpp:90:28: error: expected '}' at end of input
0_0_31528401_7279.cpp:90:28: error: expected '}' at end of input


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-22 20:46:37, Gzip enabled