0_0_16552732_10024.cpp: In function 'int main()': 0_0_16552732_10024.cpp:21:43: error: 'findNthelement' was not declared in this scope cout<<findNthelement(vec,0,N-1,N/2)<<endl; ^