Mã chấm: 7108
Main.cc: In function ‘void solve()’: Main.cc:43:12: error: expected unqualified-id before numeric constant FOR(ll,0,i,31) if(n >> i & 1) res = res * 3 % MOD; ^ Main.cc:31:30: note: in definition of macro ‘FOR’ #define FOR(dl,a,b,c) for(dl a=b;a<=c;a++) ^ Main.cc:43:12: error: expected ‘;’ before numeric constant FOR(ll,0,i,31) if(n >> i & 1) res = res * 3 % MOD; ^ Main.cc:31:30: note: in definition of macro ‘FOR’ #define FOR(dl,a,b,c) for(dl a=b;a<=c;a++) ^ Main.cc:43:14: error: ‘i’ was not declared in this scope FOR(ll,0,i,31) if(n >> i & 1) res = res * 3 % MOD; ^ Main.cc:31:32: note: in definition of macro ‘FOR’ #define FOR(dl,a,b,c) for(dl a=b;a<=c;a++) ^ Main.cc:31:35: warning: for increment expression has no effect [-Wunused-value] #define FOR(dl,a,b,c) for(dl a=b;a<=c;a++) Main.cc:43:12: FOR(ll,0,i,31) if(n >> i & 1) res = res * 3 % MOD; ~~~~~ Main.cc:43:5: note: in expansion of macro ‘FOR’ FOR(ll,0,i,31) if(n >> i & 1) res = res * 3 % MOD; ^~~ Main.cc:31:38: error: expected ‘)’ before ‘;’ token #define FOR(dl,a,b,c) for(dl a=b;a<=c;a++) ^ Main.cc:43:5: note: in expansion of macro ‘FOR’ FOR(ll,0,i,31) if(n >> i & 1) res = res * 3 % MOD; ^~~ Main.cc:31:40: error: lvalue required as increment operand #define FOR(dl,a,b,c) for(dl a=b;a<=c;a++) ^ Main.cc:43:5: note: in expansion of macro ‘FOR’ FOR(ll,0,i,31) if(n >> i & 1) res = res * 3 % MOD; ^~~