secret.cpp: In function 'void build(int, int)':
secret.cpp:28:30: error: invalid conversion from 'int*' to 'int' [-fpermissive]
28 | val = Secret(val, a[i]);
| ~~~^
| |
| int*
In file included from secret.cpp:2:
secret.h:7:23: note: initializing argument 2 of 'int Secret(int, int)'
7 | int Secret(int X, int Y);
| ~~~~^
secret.cpp:34:30: error: invalid conversion from 'int*' to 'int' [-fpermissive]
34 | val = Secret(val, a[i]);
| ~~~^
| |
| int*
In file included from secret.cpp:2:
secret.h:7:23: note: initializing argument 2 of 'int Secret(int, int)'
7 | int Secret(int X, int Y);
| ~~~~^
secret.cpp: In function 'int Query(int, int)':
secret.cpp:66:33: error: invalid conversion from 'int*' to 'int' [-fpermissive]
66 | if(l==r-1) return Secret(a[l], a[r]);
| ~~~^
| |
| int*
In file included from secret.cpp:2:
secret.h:7:16: note: initializing argument 1 of 'int Secret(int, int)'
7 | int Secret(int X, int Y);
| ~~~~^
secret.cpp:66:39: error: invalid conversion from 'int*' to 'int' [-fpermissive]
66 | if(l==r-1) return Secret(a[l], a[r]);
| ~~~^
| |
| int*
In file included from secret.cpp:2:
secret.h:7:23: note: initializing argument 2 of 'int Secret(int, int)'
7 | int Secret(int X, int Y);
| ~~~~^