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_33745171_12956.cpp:5:1: error: 'vector' does not name a type
 vector<pair<int, int> > e[N];
 ^
0_0_33745171_12956.cpp:24:1: error: 'vector' does not name a type
 vector<node> c, a;
 ^
0_0_33745171_12956.cpp: In function 'void solve()':
0_0_33745171_12956.cpp:29:5: error: 'priority_queue' was not declared in this scope
     priority_queue<node, vector<node>, cmp> que;//mean not math segment
     ^
0_0_33745171_12956.cpp:29:24: error: expected primary-expression before ',' token
     priority_queue<node, vector<node>, cmp> que;//mean not math segment
                        ^
0_0_33745171_12956.cpp:29:26: error: 'vector' was not declared in this scope
     priority_queue<node, vector<node>, cmp> que;//mean not math segment
                          ^
0_0_33745171_12956.cpp:29:37: error: expected primary-expression before '>' token
     priority_queue<node, vector<node>, cmp> que;//mean not math segment
                                     ^
0_0_33745171_12956.cpp:29:38: error: expected primary-expression before ',' token
     priority_queue<node, vector<node>, cmp> que;//mean not math segment
                                      ^
0_0_33745171_12956.cpp:29:43: error: expected primary-expression before '>' token
     priority_queue<node, vector<node>, cmp> que;//mean not math segment
                                           ^
0_0_33745171_12956.cpp:29:45: error: 'que' was not declared in this scope
     priority_queue<node, vector<node>, cmp> que;//mean not math segment
                                             ^
0_0_33745171_12956.cpp:31:16: error: 'c' was not declared in this scope
     for (; i < c.size(); i++) {
                ^
0_0_33745171_12956.cpp:32:20: error: 'a' was not declared in this scope
         while (j < a.size() && a[j].l <= c[i].l) {
                    ^
0_0_33745171_12956.cpp: In function 'void dfs(int, int)':
0_0_33745171_12956.cpp:52:18: error: 'e' was not declared in this scope
     for (auto pa:e[u]) {
                  ^
0_0_33745171_12956.cpp:55:16: error: 'dis' was not declared in this scope
         d[v] = dis;
                ^
0_0_33745171_12956.cpp: In function 'int getmax(int, int)':
0_0_33745171_12956.cpp:63:35: error: 'swap' was not declared in this scope
     if (dep[u] < dep[v]) swap(u, v);
                                   ^
0_0_33745171_12956.cpp:68:38: error: 'max' was not declared in this scope
             res = max(res, maxn[u][i]);
                                      ^
0_0_33745171_12956.cpp: In function 'int getmin(int, int)':
0_0_33745171_12956.cpp:76:35: error: 'swap' was not declared in this scope
     if (dep[u] < dep[v]) swap(u, v);
                                   ^
0_0_33745171_12956.cpp:81:38: error: 'min' was not declared in this scope
             res = min(res, minn[u][i]);
                                      ^
0_0_33745171_12956.cpp: In function 'void solve(int, int)':
0_0_33745171_12956.cpp:91:18: error: 'e' was not declared in this scope
     for (auto pa:e[u]) {
                  ^
0_0_33745171_12956.cpp:93:13: error: 'dis' was not declared in this scope
         if (dis == i) continue;//come edge
             ^
0_0_33745171_12956.cpp:95:42: error: 'dis' was not declared in this scope
             int maxn = max(getmax(u, v), dis);//get circle max
                                          ^
0_0_33745171_12956.cpp:95:45: error: 'max' was not declared in this scope
             int maxn = max(getmax(u, v), dis);//get circle max
                                             ^
0_0_33745171_12956.cpp:96:45: error: 'min' was not declared in this scope
             int minn = min(getmin(u, v), dis);//get circle min
                                             ^
0_0_33745171_12956.cpp:98:13: error: 'c' was not declared in this scope
             c.push_back({minn, maxn, 0});
             ^
0_0_33745171_12956.cpp:101:18: error: 'dis' was not declared in this scope
         solve(v, dis);
                  ^
0_0_33745171_12956.cpp: In function 'int main()':
0_0_33745171_12956.cpp:107:19: error: 'scanf' was not declared in this scope
     scanf("%d", &t);
                   ^
0_0_33745171_12956.cpp:111:9: error: 'a' was not declared in this scope
         a.clear(), c.clear();
         ^
0_0_33745171_12956.cpp:111:20: error: 'c' was not declared in this scope
         a.clear(), c.clear();
                    ^
0_0_33745171_12956.cpp:117:13: error: 'e' was not declared in this scope
             e[u].push_back({v, i});
             ^
0_0_33745171_12956.cpp:126:74: error: 'min' was not declared in this scope
                 minn[i][j] = min(minn[i][j - 1], minn[f[i][j - 1]][j - 1]);
                                                                          ^
0_0_33745171_12956.cpp:127:74: error: 'max' was not declared in this scope
                 maxn[i][j] = max(maxn[i][j - 1], maxn[f[i][j - 1]][j - 1]);
                                                                          ^
0_0_33745171_12956.cpp:135:33: error: 'swap' was not declared in this scope
             if (l > r) swap(l, r);
                                 ^
0_0_33745171_12956.cpp:138:33: error: 'swap' was not declared in this scope
             if (l > r) swap(l, r);
                                 ^
0_0_33745171_12956.cpp:141:32: error: 'sort' was not declared in this scope
         sort(c.begin(), c.end());
                                ^
0_0_33745171_12956.cpp:146:27: error: 'printf' was not declared in this scope
             printf("YES\n");
                           ^
0_0_33745171_12956.cpp:148:22: error: 'puts' was not declared in this scope
             puts("NO");
                      ^
0_0_33745171_12956.cpp:154:35: error: 'printf' was not declared in this scope
                     printf("YES\n");
                                   ^
0_0_33745171_12956.cpp:157:30: error: 'puts' was not declared in this scope
                     puts("NO");
                              ^
0_0_33745171_12956.cpp:162:35: error: 'printf' was not declared in this scope
                     printf("YES\n");
                                   ^
0_0_33745171_12956.cpp:165:30: error: 'puts' was not declared in this scope
                     puts("NO");
                              ^


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 20:14:04, Gzip enabled