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_25884613_4996.cpp: In function 'void dfs(int)':
0_0_25884613_4996.cpp:151:12: error: expected primary-expression before 'if'
         if(if(vis[v])) continue;
            ^
0_0_25884613_4996.cpp:151:12: error: expected ')' before 'if'
0_0_25884613_4996.cpp:152:17: error: too many arguments to function 'void dfs(int)'
         dfs(v, u);
                 ^
0_0_25884613_4996.cpp:136:6: note: declared here
 void dfs(int u) {
      ^
0_0_25884613_4996.cpp: In function 'void solve()':
0_0_25884613_4996.cpp:204:71: error: too many arguments to function 'void dfs(int)'
         for(int i = 1;i <= num;i++) if(!vis[p[i]]) { ++id; dfs(p[i], 0); }
                                                                       ^
0_0_25884613_4996.cpp:136:6: note: declared here
 void dfs(int u) {
      ^


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 02:01:52, Gzip enabled