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
}
^
|