0_0_15208609_9443.c:2:1: error: unknown type name 'using'
using namespace std;
^
0_0_15208609_9443.c:2:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
using namespace std;
^
0_0_15208609_9443.c:8:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
vector <int> l[M], r[M];
^
0_0_15208609_9443.c:10:5: error: variably modified 'h' at file scope
int h[N<<1];
^
0_0_15208609_9443.c:11:5: error: variably modified 'x' at file scope
int x[N], y[N];
^
0_0_15208609_9443.c:11:11: error: variably modified 'y' at file scope
int x[N], y[N];
^
0_0_15208609_9443.c: In function 'solve':
0_0_15208609_9443.c:15:29: error: invalid operands to binary - (have 'int' and 'int *')
int m = unique(h, h+2*n)-h;
^
0_0_15208609_9443.c:16:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int i = 0;i < m; i++)
^
0_0_15208609_9443.c:16:5: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
0_0_15208609_9443.c:17:9: error: 'l' undeclared (first use in this function)
l[i].clear(), r[i].clear();
^
0_0_15208609_9443.c:17:9: note: each undeclared identifier is reported only once for each function it appears in
0_0_15208609_9443.c:17:23: error: 'r' undeclared (first use in this function)
l[i].clear(), r[i].clear();
^
0_0_15208609_9443.c:18:13: error: redefinition of 'i'
for(int i = 0;i < n; i++) {
^
0_0_15208609_9443.c:16:13: note: previous definition of 'i' was here
for(int i = 0;i < m; i++)
^
0_0_15208609_9443.c:18:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int i = 0;i < n; i++) {
^
0_0_15208609_9443.c:19:41: error: invalid operands to binary - (have 'int' and 'int *')
x[i] = lower_bound(h, h+m, x[i])-h;
^
0_0_15208609_9443.c:20:41: error: invalid operands to binary - (have 'int' and 'int *')
y[i] = lower_bound(h, h+m, y[i])-h;
^
0_0_15208609_9443.c:24:13: error: redefinition of 'i'
for(int i = 0;i < m; i++) {
^
0_0_15208609_9443.c:18:13: note: previous definition of 'i' was here
for(int i = 0;i < n; i++) {
^
0_0_15208609_9443.c:24:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int i = 0;i < m; i++) {
^
0_0_15208609_9443.c:33:13: error: redefinition of 'i'
for(int i = 0;i < m; i++) {
^
0_0_15208609_9443.c:24:13: note: previous definition of 'i' was here
for(int i = 0;i < m; i++) {
^
0_0_15208609_9443.c:33:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int i = 0;i < m; i++) {
^
0_0_15208609_9443.c:35:9: error: unknown type name 'bool'
bool flag = true;
^
0_0_15208609_9443.c:35:21: error: 'true' undeclared (first use in this function)
bool flag = true;
^
0_0_15208609_9443.c:36:18: error: expected identifier or '(' before '&' token
for(auto &it:l[i]) {
^
0_0_15208609_9443.c:36:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(auto &it:l[i]) {
^
0_0_15208609_9443.c:41:9: error: expected expression before 'if'
if(flag) {
^
0_0_15208609_9443.c:45:5: error: expected expression before '}' token
}
^
0_0_15208609_9443.c:45:5: error: expected expression before '}' token
0_0_15208609_9443.c:46:13: error: redefinition of 'i'
for(int i = 0;i < m; i++) {
^
0_0_15208609_9443.c:33:13: note: previous definition of 'i' was here
for(int i = 0;i < m; i++) {
^
0_0_15208609_9443.c:46:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int i = 0;i < m; i++) {
^
0_0_15208609_9443.c:48:9: error: unknown type name 'bool'
bool flag = true;
^
0_0_15208609_9443.c:49:18: error: expected identifier or '(' before '&' token
for(auto &it:r[i]) {
^
0_0_15208609_9443.c:49:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(auto &it:r[i]) {
^
0_0_15208609_9443.c:54:9: error: expected expression before 'if'
if(flag) {
^
0_0_15208609_9443.c:58:5: error: expected expression before '}' token
}
^
0_0_15208609_9443.c:58:5: error: expected expression before '}' token
0_0_15208609_9443.c: In function 'main':
0_0_15208609_9443.c:67:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int i = 0;i < n; i++) {
^
|