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_38265059_22665.cpp:1:1: error: 'include' does not name a type
 include <bits/stdc++.h>
 ^
0_0_38265059_22665.cpp:6:1: error: 'vector' does not name a type
 vector<int> map[MAXN];
 ^
0_0_38265059_22665.cpp: In function 'int main()':
0_0_38265059_22665.cpp:9:18: error: 'scanf' was not declared in this scope
     scanf("%d",&t);
                  ^
0_0_38265059_22665.cpp:11:35: error: 'memset' was not declared in this scope
         memset(node,0,sizeof(node)); //初始化
                                   ^
0_0_38265059_22665.cpp:13:13: error: 'map' was not declared in this scope
             map[i].clear();
             ^
0_0_38265059_22665.cpp:17:13: error: 'map' was not declared in this scope
             map[a].push_back(b); //无向图,正反两次操作
             ^
0_0_38265059_22665.cpp:30:31: error: 'map' was not declared in this scope
                 for(int i=0;i<map[u].size();i++) //遍历计算相邻节点值之和
                               ^
0_0_38265059_22665.cpp:32:34: error: 'printf' was not declared in this scope
                 printf("%d\n",ans);
                                  ^


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-26 12:05:27, Gzip enabled