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_22312043_3496.cpp:23:1: error: 'vector' does not name a type
 vector<int>vec[MAXN];
 ^
0_0_22312043_3496.cpp:26:1: error: 'map' does not name a type
 map<int,int>mp;
 ^
0_0_22312043_3496.cpp: In function 'void dfs(int)':
0_0_22312043_3496.cpp:74:14: error: 'vec' was not declared in this scope
     int sz = vec[u].size();
              ^
0_0_22312043_3496.cpp:78:17: error: 'mp' was not declared in this scope
         int X = mp[Query[id].X];
                 ^
0_0_22312043_3496.cpp:92:10: error: 'mp' was not declared in this scope
     add1(mp[w[u]],1);
          ^
0_0_22312043_3496.cpp: In function 'int main()':
0_0_22312043_3496.cpp:106:17: error: 'T' was not declared in this scope
     scanf("%d",&T);
                 ^
0_0_22312043_3496.cpp:114:13: error: 'vec' was not declared in this scope
             vec[i].clear();
             ^
0_0_22312043_3496.cpp:138:13: error: 'vec' was not declared in this scope
             vec[u].push_back(i);
             ^
0_0_22312043_3496.cpp:146:19: error: 'sort' was not declared in this scope
         sort(a,a+t);
                   ^
0_0_22312043_3496.cpp:146:19: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
                 from 0_0_22312043_3496.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:4705:5: note:   'std::sort'
     sort(_RandomAccessIterator __first, _RandomAccessIterator __last,
     ^
0_0_22312043_3496.cpp:147:25: error: 'unique' was not declared in this scope
         t = unique(a,a+t)-a;
                         ^
0_0_22312043_3496.cpp:147:25: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
                 from 0_0_22312043_3496.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1022:5: note:   'std::unique'
     unique(_ForwardIterator __first, _ForwardIterator __last,
     ^
0_0_22312043_3496.cpp:148:9: error: 'mp' was not declared in this scope
         mp.clear();
         ^


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-16 12:26:00, Gzip enabled