popa.cpp: In function 'int solve(int, int*, int*)':
popa.cpp:5:8: error: 'query' was not declared in this scope
if(query(0,i-1,i+1,N-1){
^~~~~
popa.cpp:5:28: error: expected ')' before '{' token
if(query(0,i-1,i+1,N-1){
^
popa.cpp:9:3: error: expected primary-expression before '}' token
}
^
popa.cpp:10:3: error: 'myway' was not declared in this scope
myway(0,N,Left,Right);
^~~~~
popa.cpp:11:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
popa.cpp: In function 'int myway(int, int, int*, int*)':
popa.cpp:21:8: error: 'query' was not declared in this scope
if(query(l,i-1,i+1,r){
^~~~~
popa.cpp:21:26: error: expected ')' before '{' token
if(query(l,i-1,i+1,r){
^
popa.cpp:26:3: error: expected primary-expression before '}' token
}
^