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_20076120_21382.cpp:9:1: error: 'shortint' does not name a type
 shortint n, m;
 ^
0_0_20076120_21382.cpp:10:1: error: 'shortint' does not name a type
 shortint num;//元素个数 
 ^
0_0_20076120_21382.cpp:11:1: error: 'shortint' does not name a type
 shortint fa[MAXN];//并查集 
 ^
0_0_20076120_21382.cpp:14:1: error: 'shortint' does not name a type
 shortint deep[MAXN], E[MAXN << 1];//深度数组,dfs序 
 ^
0_0_20076120_21382.cpp:15:1: error: 'shortint' does not name a type
 shortint getRMQ[MAXN << 1][16];//RMQ数组 
 ^
0_0_20076120_21382.cpp:16:1: error: 'shortint' does not name a type
 shortint ans;//次序 
 ^
0_0_20076120_21382.cpp:17:1: error: 'shortsint' does not name a type
 shortsint r[MAXN];
 ^
0_0_20076120_21382.cpp: In function 'void DFS(int)':
0_0_20076120_21382.cpp:19:2: error: 'E' was not declared in this scope
  E[++ans] = x;
  ^
0_0_20076120_21382.cpp:19:6: error: 'ans' was not declared in this scope
  E[++ans] = x;
      ^
0_0_20076120_21382.cpp:20:7: error: 'r' was not declared in this scope
  if (!r[x])
       ^
0_0_20076120_21382.cpp:22:6: error: 'fa' was not declared in this scope
  if (fa[x] != x)
      ^
0_0_20076120_21382.cpp:23:3: error: 'deep' was not declared in this scope
   deep[x] = deep[fa[x]] + 1;
   ^
0_0_20076120_21382.cpp:25:3: error: 'deep' was not declared in this scope
   deep[x] = 1;
   ^
0_0_20076120_21382.cpp: In function 'void RMQ()':
0_0_20076120_21382.cpp:31:9: error: 'getRMQ' was not declared in this scope
  memset(getRMQ, 0, sizeof(getRMQ));
         ^
0_0_20076120_21382.cpp:32:23: error: 'ans' was not declared in this scope
  for (int i = 1; i <= ans; i++) {
                       ^
0_0_20076120_21382.cpp:33:18: error: 'deep' was not declared in this scope
   getRMQ[i][0] = deep[E[i]];
                  ^
0_0_20076120_21382.cpp:33:23: error: 'E' was not declared in this scope
   getRMQ[i][0] = deep[E[i]];
                       ^
0_0_20076120_21382.cpp:35:30: error: 'ans' was not declared in this scope
  for (int j = 1; (1 << j) <= ans; j++)
                              ^
0_0_20076120_21382.cpp: In function 'int main()':
0_0_20076120_21382.cpp:44:3: error: 'num' was not declared in this scope
   num = 0;
   ^
0_0_20076120_21382.cpp:45:17: error: 'ans' was not declared in this scope
   x = 0; y = 0; ans = 0;
                 ^
0_0_20076120_21382.cpp:46:10: error: 'n' was not declared in this scope
   cin >> n  >> m;
          ^
0_0_20076120_21382.cpp:46:16: error: 'm' was not declared in this scope
   cin >> n  >> m;
                ^
0_0_20076120_21382.cpp:48:4: error: 'fa' was not declared in this scope
    fa[i] = i;
    ^
0_0_20076120_21382.cpp:63:4: error: 'fa' was not declared in this scope
    fa[x] = y;
    ^
0_0_20076120_21382.cpp:66:10: error: 'r' was not declared in this scope
   memset(r, 0, sizeof(r));
          ^
0_0_20076120_21382.cpp:67:10: error: 'deep' was not declared in this scope
   memset(deep, 0, sizeof(deep));
          ^
0_0_20076120_21382.cpp:69:8: error: 'fa' was not declared in this scope
    if (fa[i] == i) {
        ^
0_0_20076120_21382.cpp:81:10: error: 'getRMQ' was not declared in this scope
    cout<<getRMQ[r[x]][r[y]];
          ^


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-17 01:58:54, Gzip enabled