Main.cc:3:13: error: expected unqualified-id before ‘long’ #define int long long ^ Main.cc:14:2: note: in expansion of macro ‘int’ *int tmp; ^~~ Main.cc:3:13: error: expected constructor, destructor, or type conversion before ‘long’ #define int long long ^ Main.cc:14:2: note: in expansion of macro ‘int’ *int tmp; ^~~ Main.cc: In function ‘long long int rkb(long long int)’: Main.cc:16:25: error: ‘tmp’ was not declared in this scope return lower_bound(s+1,tmp,x)-s; ^~~ Main.cc:16:25: note: suggested alternative: ‘tm’ return lower_bound(s+1,tmp,x)-s; ^~~ tm Main.cc: In function ‘void uc(long long int, long long int)’: Main.cc:34:16: error: ‘struct node’ has no member named ‘mnxd’; did you mean ‘mnx’? T[x].mnw=T[x].mnxd+c; ^~~~ mnx Main.cc: In function ‘void ud(long long int, long long int)’: Main.cc:41:16: error: ‘struct node’ has no member named ‘mnxc’; did you mean ‘mnx’? T[x].mnw=T[x].mnxc+d; ^~~~ mnx Main.cc: In function ‘void bd(long long int, long long int, long long int)’: Main.cc:63:11: warning: suggest parentheses around ‘+’ inside ‘>>’ [-Wparentheses] int mid=l+r>>1; ~^~ Main.cc: In function ‘void chkmodc(long long int, long long int, long long int, long long int, long long int, long long int)’: Main.cc:76:4: error: request for member ‘push_back’ in ‘R’, which is of non-class type ‘long long int’ R.push_back({lc(x),T[lc(x)]}); ^~~~~~~~~ Main.cc:77:4: error: request for member ‘push_back’ in ‘R’, which is of non-class type ‘long long int’ R.push_back({rc(x),T[rc(x)]}); ^~~~~~~~~ Main.cc:80:11: warning: suggest parentheses around ‘+’ inside ‘>>’ [-Wparentheses] int mid=l+r>>1; ~^~ Main.cc: In function ‘void chkmxc(long long int, long long int)’: Main.cc:85:33: error: ‘chkmmodc’ was not declared in this scope inline void chkmxc(int r,int c){chkmmodc(1,1,n,1,r,c);} ^~~~~~~~ Main.cc:85:33: note: suggested alternative: ‘chkmodc’ inline void chkmxc(int r,int c){chkmmodc(1,1,n,1,r,c);} ^~~~~~~~ chkmodc Main.cc: In function ‘void chkmodd(long long int, long long int, long long int, long long int, long long int, long long int)’: Main.cc:94:4: error: request for member ‘push_back’ in ‘R’, which is of non-class type ‘long long int’ R.push_back({lc(x),T[lc(x)]}); ^~~~~~~~~ Main.cc:95:4: error: request for member ‘push_back’ in ‘R’, which is of non-class type ‘long long int’ R.push_back({rc(x),T[rc(x)]}); ^~~~~~~~~ Main.cc:97:11: warning: suggest parentheses around ‘+’ inside ‘>>’ [-Wparentheses] int mid=l+r>>1; ~^~ Main.cc: In function ‘void chkmxd(long long int, long long int)’: Main.cc:102:33: error: ‘chkmmodd’ was not declared in this scope inline void chkmxd(int r,int d){chkmmodd(1,1,n,1,r,d);} ^~~~~~~~ Main.cc:102:33: note: suggested alternative: ‘chkmodd’ inline void chkmxd(int r,int d){chkmmodd(1,1,n,1,r,d);} ^~~~~~~~ chkmodd Main.cc: In function ‘void clr()’: Main.cc:104:4: error: ‘class std::stack >’ has no member named ‘clear’ R.clear(); ^~~~~ Main.cc:105:4: error: ‘class std::stack >’ has no member named ‘push_back’ R.push_back({1,T[1]}); ^~~~~~~~~