Problem factories
User LCJLY
Submission Time 2022-12-22 15:02:42
Score 0
Max Time N/A
Max Memory N/A

Compile Error

factories.cpp: In function ‘void Init(int32_t, int32_t*, int32_t*, int32_t*)’:
factories.cpp:175:8: error: request for member ‘reserve’ in ‘dist’, which is of non-class type ‘long long int [500005]’
175 | dist.reserve(100000);
| ^~~~~~~
factories.cpp: In function ‘long long int Query(int32_t, int32_t*, int32_t, int32_t*)’:
factories.cpp:197:8: error: request for member ‘clear’ in ‘dist’, which is of non-class type ‘long long int [500005]’
197 | dist.clear();
| ^~~~~
factories.cpp:198:8: error: request for member ‘reserve’ in ‘dist’, which is of non-class type ‘long long int [500005]’
198 | dist.reserve(10000);
| ^~~~~~~