Problem doll
User bribritt
Submission Time 2023-11-30 17:49:00
Score 0
Max Time N/A
Max Memory N/A

Compile Error

doll.cpp: In function ‘void create_circuit(int, std::vector<int>)’:
doll.cpp:6:34: error: expected ‘;’ before numeric constant
6 | #define RREP(i,a,b) for(int i=(a)0;i>=(b);i--)
| ^
doll.cpp:36:2: note: in expansion of macro ‘RREP’
36 | RREP(i,2<<log,1) no[i]=-(no[i<<1]+no[i<<1|1]==-2);
| ^~~~
doll.cpp:6:42: error: expected ‘)’ before ‘;’ token
6 | #define RREP(i,a,b) for(int i=(a)0;i>=(b);i--)
| ~ ^
doll.cpp:36:2: note: in expansion of macro ‘RREP’
36 | RREP(i,2<<log,1) no[i]=-(no[i<<1]+no[i<<1|1]==-2);
| ^~~~
doll.cpp:36:7: error: ‘i’ was not declared in this scope
36 | RREP(i,2<<log,1) no[i]=-(no[i<<1]+no[i<<1|1]==-2);
| ^
doll.cpp:6:43: note: in definition of macro ‘RREP’
6 | #define RREP(i,a,b) for(int i=(a)0;i>=(b);i--)
|