popa.cpp: In function 'int Solve(int, int, int*, int*)':
popa.cpp:32:15: error: too few arguments to function 'int query(int, int, int, int)'
if(query(x,y)==query(bas,orta)) son=orta-1;
^
In file included from popa.cpp:2:0:
popa.h:4:5: note: declared here
int query(int a, int b, int c, int d);
^~~~~
popa.cpp:32:32: error: too few arguments to function 'int query(int, int, int, int)'
if(query(x,y)==query(bas,orta)) son=orta-1;
^
In file included from popa.cpp:2:0:
popa.h:4:5: note: declared here
int query(int a, int b, int c, int d);
^~~~~
popa.cpp:37:25: error: too few arguments to function 'int Solve(int, int, int*, int*)'
Left[bas]=Solve(x,bas-1);
^
popa.cpp:24:5: note: declared here
int Solve(int x,int y,int *Left,int *Right) {
^~~~~
popa.cpp:38:26: error: too few arguments to function 'int Solve(int, int, int*, int*)'
Right[bas]=Solve(bas+1,y);
^
popa.cpp:24:5: note: declared here
int Solve(int x,int y,int *Left,int *Right) {
^~~~~
popa.cpp: At global scope:
popa.cpp:20:11: error: expected ',' or '...' before numeric constant
#define N 305
^
popa.cpp:44:15: note: in expansion of macro 'N'
int solve(int N, int* Left, int* Right) {
^
popa.cpp: In function 'int solve(int)':
popa.cpp:46:21: error: 'Left' was not declared in this scope
return Solve(0,N-1,Left,Right);
^~~~
popa.cpp:46:26: error: 'Right' was not declared in this scope
return Solve(0,N-1,Left,Right);
^~~~~
popa.cpp:46:26: note: suggested alternative: 'sig_t'
return Solve(0,N-1,Left,Right);
^~~~~
sig_t