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_32393314_909.cpp: In function 'int main()':
0_0_32393314_909.cpp:53:28: error: invalid conversion from 'int*' to 'int' [-fpermissive]
      ans=max(dep[lca(A[k],B)],ans);
                            ^
0_0_32393314_909.cpp:20:5: note: initializing argument 2 of 'int lca(int, int)'
 int lca(int a,int b) {
     ^
0_0_32393314_909.cpp:57:17: error: 'ans' was not declared in this scope
   printf("%d\n",ans);
                 ^
0_0_32393314_909.cpp: At global scope:
0_0_32393314_909.cpp:60:1: error: expected unqualified-id before 'return'
 return 0;
 ^
0_0_32393314_909.cpp:61:1: error: expected declaration before '}' token
 }
 ^


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 14:59:36, Gzip enabled