Problem giantduck
User gelastropod
Submission Time 2024-12-21 15:13:50
Score 0
Max Time N/A
Max Memory N/A

Compile Error

giantduck.cpp: In function ‘long long int F1(long long int, long long int, long long int)’:
giantduck.cpp:10:57: error: expected primary-expression before ‘if’
10 | L n; V<V<V<L>>>D; L F1(L x,L y,L z){O(!x,R max(1LL,y+z),if(D[x][y][z]+1)R D[x][y][z]);R D[x][y][z]=(F1(x-1,0,z+y)*F1(x-1,1,z+y))%M;}V<V<L>>B;L F2(L x,L z){O(!x,R max(1LL,z),if(B[x][z]+1)R B[x][z]);L r=F2(x-1,z+!!(n&(1LL<<(x-1))));if(n&(1LL<<(x-1)))r*=F1(x-1,0,z);R B[x][z]=r%M;}signed main(){cin>>n;D=V<V<V<L>>>(60,V<V<L>>(2,V<L>(60,-1)));B=V<V<L>>(60,V<L>(60,-1));cout<<F2(55,0)<<'\n';}
| ^~
giantduck.cpp:5:25: note: in definition of macro ‘O’
5 | #define O(x,y,z) if(x)y=z;else z=x;
| ^
giantduck.cpp:10:57: error: expected ‘;’ before ‘if’
10 | L n; V<V<V<L>>>D; L F1(L x,L