Problem factories
User bribritt
Submission Time 2023-04-14 06:46:49
Score 0
Max Time N/A
Max Memory N/A

Compile Error

factories.cpp: In function ‘void constructST()’:
factories.cpp:37:73: error: expected identifier before numeric constant
37 | sparsetable[j][i] = min(sparsetable[j][i-1], sparsetable[j+[1<<(i-1)]]);
| ^
factories.cpp: In lambda function:
factories.cpp:37:82: error: expected ‘{’ before ‘]’ token
37 | sparsetable[j][i] = min(sparsetable[j][i-1], sparsetable[j+[1<<(i-1)]]);
| ^
factories.cpp: In function ‘void constructST()’:
factories.cpp:37:71: error: no match for ‘operator+’ (operand types are ‘long long int’ and ‘constructST()::<lambda()>’)
37 | sparsetable[j][i] = min(sparsetable[j][i-1], sparsetable[j+[1<<(i-1)]]);
In file included from /usr/include/c++/9/bits/stl_algobase.h:67,
from /usr/include/c++/