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_33633176_28406.cpp: In function 'int dfs(int, int)':
0_0_33633176_28406.cpp:15:11: error: 'n' was not declared in this scope
     if(u==n+1) return 0;
           ^
0_0_33633176_28406.cpp:17:11: error: too few arguments to function 'int dfs(int, int)'
     l=dfs()
           ^
0_0_33633176_28406.cpp:14:5: note: declared here
 int dfs(int u,int t){
     ^
0_0_33633176_28406.cpp: In function 'void solve()':
0_0_33633176_28406.cpp:22:13: error: 'n' was not declared in this scope
     rep(i,1,n+1) cin>>a[i].fi>>a[i].se;
             ^
0_0_33633176_28406.cpp:3:34: note: in definition of macro 'rep'
 #define rep(i,a,n) for(int i=a;i<n;i++)
                                  ^
0_0_33633176_28406.cpp:22:28: error: 'pii' has no member named 'fi'
     rep(i,1,n+1) cin>>a[i].fi>>a[i].se;
                            ^
0_0_33633176_28406.cpp:22:37: error: 'pii' has no member named 'se'
     rep(i,1,n+1) cin>>a[i].fi>>a[i].se;
                                     ^


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 19:54:11, Gzip enabled