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_19218385_28110.cpp:7:1: error: 'vector' does not name a type
 vector<int> G[maxn];
 ^
0_0_19218385_28110.cpp: In function 'bool dfs(int)':
0_0_19218385_28110.cpp:12:25: error: 'G' was not declared in this scope
     for (int i = 0; i < G[u].size(); i++)
                         ^
0_0_19218385_28110.cpp: In function 'void init()':
0_0_19218385_28110.cpp:40:36: error: 'G' was not declared in this scope
     for (int i = 1; i < maxn; i++) G[i].clear();
                                    ^
0_0_19218385_28110.cpp:41:25: error: 'scanf' was not declared in this scope
     scanf("%d%d", &n, &s);
                         ^
0_0_19218385_28110.cpp: In function 'void solve()':
0_0_19218385_28110.cpp:49:22: error: 'printf' was not declared in this scope
         printf("No\n");
                      ^
0_0_19218385_28110.cpp:60:21: error: 'G' was not declared in this scope
                     G[i].push_back(j);
                     ^
0_0_19218385_28110.cpp:65:35: error: 'printf' was not declared in this scope
         if (m == n) printf("Yes\n");
                                   ^
0_0_19218385_28110.cpp:66:27: error: 'printf' was not declared in this scope
         else printf("No\n");
                           ^
0_0_19218385_28110.cpp:75:17: error: 'G' was not declared in this scope
                 G[i].push_back(j);
                 ^
0_0_19218385_28110.cpp:80:31: error: 'printf' was not declared in this scope
     if (m == s) printf("Yes\n");
                               ^
0_0_19218385_28110.cpp:81:23: error: 'printf' was not declared in this scope
     else printf("No\n");
                       ^
0_0_19218385_28110.cpp: In function 'int main()':
0_0_19218385_28110.cpp:88:19: error: 'scanf' was not declared in this scope
     scanf("%d", &T);
                   ^
0_0_19218385_28110.cpp:91:36: error: 'printf' was not declared in this scope
         printf("Case #%d: ", ++kase);
                                    ^


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-28 13:10:42, Gzip enabled