bubblesort2.cpp:95:2: error: stray '#' in program
}#include <bits/stdc++.h>
^
bubblesort2.cpp: In function 'std::vector<int> countScans(std::vector<int>, std::vector<int>, std::vector<int>)':
bubblesort2.cpp:55:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i=0; i<s.size(); i++)
~^~~~~~~~~
bubblesort2.cpp: At global scope:
bubblesort2.cpp:95:3: error: 'include' does not name a type
}#include <bits/stdc++.h>
^~~~~~~
bubblesort2.cpp:103:11: error: redefinition of 'const int N'
const int N=10003;
^
bubblesort2.cpp:9:11: note: 'const int N' previously defined here
const int N=10003;
^
bubblesort2.cpp:104:5: error: redefinition of 'int n'
int n,q,S,L,R,dl,idx,val,Xx,Yy,a[N],pos[N],x[N],G[2*N],inf=-1e9;
^
bubblesort2.cpp:10:5: note: 'int n' previously declared here
int n,q,S,L,R,dl,idx,val,Xx,Yy,a[N],pos[N],x[N],G[2*N],inf=-1e9;
^
bubblesort2.cpp:104:7: error: redefinition of 'int q'
int n,q,S,L,R,dl,idx,val,Xx,Yy,a[N],pos[N],x[N],G[2*N],inf=-1e9;
^
bubblesort2.cpp:10:7: note: 'int q' previously declared here
int n,q,S,L,R,dl,idx,val,Xx,Yy,a[N],pos[N],x[N],G[2*N],inf=-1e9;
^
bubblesort2.cpp:101:11: error: redefinition of 'int second'
#define S second
^
bubblesort2.cpp:104:9: note: in expansion of macro 'S'
int n,q,S,L,R,dl,idx,val,Xx,Yy,a[N],pos[N],x[N],G[2*N],inf=-1e9;
^
bubblesort2.cpp:7:11: note: 'int second' previously declared here
#define S second
^
bubblesort2.cpp:10:9: note: in expansion of macro 'S'
int n,q,S,L,R,dl,idx,val,Xx,Yy,a[N],pos[N],x[N],G[2*N],inf=-1e9;
^
bubblesort2.cpp:104:11: error: redefinition of 'int L'
int n,q,S,L,R,dl,idx,val,Xx,Yy,a[N],pos[N],x[N],G[2*N],inf=-1e9;
^
bubblesort2.cpp:10:11: note: 'int L' previously declared here
int n,q,S,L,R,dl,idx,val,Xx,Yy,a[N],pos[N],x[N],G[2*N],inf=-1e9;
^
bubblesort2.cpp:104:13: error: redefinition of 'int R'
int n,q,S,L,R,dl,idx,val,Xx,Yy,a[N],pos[N],x[N],G[2*N],inf=-1e9;
^
bubblesort2.cpp:10:13: note: 'int R' previously declared here
int n,q,S,L,R,dl,idx,val,Xx,Yy,a[N],pos[N],x[N],G[2*N],inf=-1e9;
^
bubblesort2.cpp:104:15: error: redefinition of 'int dl'
int n,q,S,L,R,dl,idx,val,Xx,Yy,a[N],pos[N],x[N],G[2*N],inf=-1e9;
^~
bubblesort2.cpp:10:15: note: 'int dl' previously declared here
int n,q,S,L,R,dl,idx,val,Xx,Yy,a[N],pos[N],x[N],G[2*N],inf=-1e9;
^~
bubblesort2.cpp:104:18: error: redefinition of 'int idx'
int n,q,S,L,R,dl,idx,val,Xx,Yy,a[N],pos[N],x[N],G[2*N],inf=-1e9;
^~~
bubblesort2.cpp:10:18: note: 'int idx' previously declared here
int n,q,S,L,R,dl,idx,val,Xx,Yy,a[N],pos[N],x[N],G[2*N],inf=-1e9;
^~~
bubblesort2.cpp:104:22: error: redefinition of 'int val'
int n,q,S,L,R,dl,idx,val,Xx,Yy,a[N],pos[N],x[N],G[2*N],inf=-1e9;
^~~
bubblesort2.cpp:10:22: note: 'int val' previously declared here
int n,q,S,L,R,dl,idx,val,Xx,Yy,a[N],pos[N],x[N],G[2*N],inf=-1e9;
^~~
bubblesort2.cpp:104:26: error: redefinition of 'int Xx'
int n,q,S,L,R,dl,idx,val,Xx,Yy,a[N],pos[N],x[N],G[2*N],inf=-1e9;
^~
bubblesort2.cpp:10:26: note: 'int Xx' previously declared here
int n,q,S,L,R,dl,idx,val,Xx,Yy,a[N],pos[N],x[N],G[2*N],inf=-1e9;
^~
bubblesort2.cpp:104:29: error: redefinition of 'int Yy'
int n,q,S,L,R,dl,idx,val,Xx,Yy,a[N],pos[N],x[N],G[2*N],inf=-1e9;
^~
bubblesort2.cpp:10:29: note: 'int Yy' previously declared here
int n,q,S,L,R,dl,idx,val,Xx,Yy,a[N],pos[N],x[N],G[2*N],inf=-1e9;
^~
bubblesort2.cpp:104:35: error: redefinition of 'int a [10003]'
int n,q,S,L,R,dl,idx,val,Xx,Yy,a[N],pos[N],x[N],G[2*N],inf=-1e9;
^
bubblesort2.cpp:10:32: note: 'int a [10003]' previously declared here
int n,q,S,L,R,dl,idx,val,Xx,Yy,a[N],pos[N],x[N],G[2*N],inf=-1e9;
^
bubblesort2.cpp:104:42: error: redefinition of 'int pos [10003]'
int n,q,S,L,R,dl,idx,val,Xx,Yy,a[N],pos[N],x[N],G[2*N],inf=-1e9;
^
bubblesort2.cpp:10:37: note: 'int pos [10003]' previously declared here
int n,q,S,L,R,dl,idx,val,Xx,Yy,a[N],pos[N],x[N],G[2*N],inf=-1e9;
^~~
bubblesort2.cpp:104:47: error: redefinition of 'int x [10003]'
int n,q,S,L,R,dl,idx,val,Xx,Yy,a[N],pos[N],x[N],G[2*N],inf=-1e9;
^
bubblesort2.cpp:10:44: note: 'int x [10003]' previously declared here
int n,q,S,L,R,dl,idx,val,Xx,Yy,a[N],pos[N],x[N],G[2*N],inf=-1e9;
^
bubblesort2.cpp:104:54: error: redefinition of 'int G [20006]'
int n,q,S,L,R,dl,idx,val,Xx,Yy,a[N],pos[N],x[N],G[2*N],inf=-1e9;
^
bubblesort2.cpp:10:49: note: 'int G [20006]' previously declared here
int n,q,S,L,R,dl,idx,val,Xx,Yy,a[N],pos[N],x[N],G[2*N],inf=-1e9;
^
bubblesort2.cpp:104:56: error: redefinition of 'int inf'
int n,q,S,L,R,dl,idx,val,Xx,Yy,a[N],pos[N],x[N],G[2*N],inf=-1e9;
^~~
bubblesort2.cpp:10:56: note: 'int inf' previously defined here
int n,q,S,L,R,dl,idx,val,Xx,Yy,a[N],pos[N],x[N],G[2*N],inf=-1e9;
^~~
bubblesort2.cpp:105:16: error: redefinition of 'std::vector<int> answer'
vector < int > answer;
^~~~~~
bubblesort2.cpp:11:16: note: 'std::vector<int> answer' previously declared here
vector < int > answer;
^~~~~~
bubblesort2.cpp:106:47: error: redefinition of 'std::vector<std::pair<std::pair<int, int>, bool> > s'
vector < pair < pair < int , int > , bool > > s;
^
bubblesort2.cpp:12:47: note: 'std::vector<std::pair<std::pair<int, int>, bool> > s' previously declared here
vector < pair < pair < int , int > , bool > > s;
^
bubblesort2.cpp:107:36: error: conflicting declaration 'typedef struct res res'
typedef struct { int x; int add; } res;
^~~
bubblesort2.cpp:13:36: note: previous declaration as 'typedef struct res res'
typedef struct { int x; int add; } res;
^~~
bubblesort2.cpp:108:10: error: redefinition of 'res v [80024]'
res v[8*N];
^
bubblesort2.cpp:14:5: note: 'res v [80024]' previously declared here
res v[8*N];
^
bubblesort2.cpp: In function 'void Shift(int, int, int)':
bubblesort2.cpp:110:13: error: redefinition of 'void Shift(int, int, int)'
inline void Shift(Tree) {
^~~~~
bubblesort2.cpp:16:13: note: 'void Shift(int, int, int)' previously defined here
inline void Shift(Tree) {
^~~~~
bubblesort2.cpp: In function 'void Updlr(int, int, int)':
bubblesort2.cpp:120:6: error: redefinition of 'void Updlr(int, int, int)'
void Updlr(Tree) {
^~~~~
bubblesort2.cpp:26:6: note: 'void Updlr(int, int, int)' previously defined here
void Updlr(Tree) {
^~~~~
bubblesort2.cpp: In function 'void Upd(int, int, int)':
bubblesort2.cpp:128:6: error: redefinition of 'void Upd(int, int, int)'
void Upd(Tree) {
^~~
bubblesort2.cpp:34:6: note: 'void Upd(int, int, int)' previously defined here
void Upd(Tree) {
^~~
bubblesort2.cpp: In function 'void Up(int, int)':
bubblesort2.cpp:136:6: error: redefinition of 'void Up(int, int)'
void Up(int x,int dl) { while (x<=S) { G[x]+=dl; x+=(x & -x); } }
^~
bubblesort2.cpp:42:6: note: 'void Up(int, int)' previously defined here
void Up(int x,int dl) { while (x<=S) { G[x]+=dl; x+=(x & -x); } }
^~
bubblesort2.cpp: In function 'int Ge(int)':
bubblesort2.cpp:137:5: error: redefinition of 'int Ge(int)'
int Ge(int x) { int Res=0; while (x>0) { Res+=G[x]; x-=(x & -x); } return Res; }
^~
bubblesort2.cpp:43:5: note: 'int Ge(int)' previously defined here
int Ge(int x) { int Res=0; while (x>0) { Res+=G[x]; x-=(x & -x); } return Res; }
^~
bubblesort2.cpp: In function 'std::vector<int> countScans(std::vector<int>, std::vector<int>, std::vector<int>)':
bubblesort2.cpp:139:18: error: redefinition of 'std::vector<int> countScans(std::vector<int>, std::vector<int>, std::vector<int>)'
std::vector<int> countScans(std::vector<int> A,std::vector<int> X,std::vector<int> V){
^~~~~~~~~~
bubblesort2.cpp:45:18: note: 'std::vector<int> countScans(std::vector<int>, std::vector<int>, std::vector<int>)' previously defined here
std::vector<int> countScans(std::vector<int> A,std::vector<int> X,std::vector<int> V){
^~~~~~~~~~
bubblesort2.cpp:149:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i=0; i<s.size(); i++)
~^~~~~~~~~