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_21097482_25388.cpp:18:14: error: invalid operands of types 'double' and 'int' to binary 'operator<<'
 } edge[MAXM<<1];      //边
              ^
0_0_21097482_25388.cpp:19:14: error: size of array 'head' has non-integral type 'double'
 int head[MAXM], e; // head 顶点
              ^
0_0_21097482_25388.cpp:20:19: error: size of array 'vis' has non-integral type 'double'
 int n, k, vis[MAXN], ans, root, num,m;
                   ^
0_0_21097482_25388.cpp:21:15: error: size of array 'color' has non-integral type 'double'
 int color[MAXN];
               ^
0_0_21097482_25388.cpp:22:15: error: size of array 'hash1' has non-integral type 'double'
 int hash1[MAXN];
               ^
0_0_21097482_25388.cpp: In function 'void add(long long int, long long int, long long int)':
0_0_21097482_25388.cpp:29:5: error: 'edge' was not declared in this scope
     edge[e].v = v;          //边的目标点
     ^
0_0_21097482_25388.cpp: At global scope:
0_0_21097482_25388.cpp:34:12: error: size of array 'mx' has non-integral type 'double'
 int mx[MAXM], size[MAXN], mi ;
            ^
0_0_21097482_25388.cpp:34:24: error: size of array 'size' has non-integral type 'double'
 int mx[MAXM], size[MAXN], mi ;
                        ^
0_0_21097482_25388.cpp: In function 'void dfs_size(long long int, long long int)':
0_0_21097482_25388.cpp:39:40: error: 'edge' was not declared in this scope
     for (int i = head[u]; i != -1; i = edge[i].next) {
                                        ^
0_0_21097482_25388.cpp: In function 'void dfs_root(long long int, long long int, long long int)':
0_0_21097482_25388.cpp:51:40: error: 'edge' was not declared in this scope
     for (int i = head[u]; i != -1; i = edge[i].next) {
                                        ^
0_0_21097482_25388.cpp: In function 'void dfs_dis(long long int, long long int, long long int)':
0_0_21097482_25388.cpp:58:40: error: 'edge' was not declared in this scope
     for (int i = head[u]; i != -1; i = edge[i].next) {
                                        ^
0_0_21097482_25388.cpp: In function 'void dfs(long long int)':
0_0_21097482_25388.cpp:95:42: error: 'edge' was not declared in this scope
     for(int i = head[root]; i != -1; i = edge[i].next){
                                          ^
0_0_21097482_25388.cpp: At global scope:
0_0_21097482_25388.cpp:103:10: error: '::main' must return 'int'
 int main(){
          ^


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