popa.cpp: In function 'int solve(int, int*, int*)':
popa.cpp:11:3: error: 'myway' was not declared in this scope
myway(0,N,Left,Right);
^~~~~
popa.cpp:12:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
popa.cpp: In function 'int myway(int, int, int*, int*)':
popa.cpp:23:26: error: too few arguments to function 'int myway(int, int, int*, int*)'
Left[i]=myway(l,i-1);
^
popa.cpp:13:5: note: declared here
int myway(int l,int r,int* Left,int* Right){
^~~~~
popa.cpp:24:27: error: too few arguments to function 'int myway(int, int, int*, int*)'
Right[i]=myway(i+1,r);
^
popa.cpp:13:5: note: declared here
int myway(int l,int r,int* Left,int* Right){
^~~~~