Problem newjeans
User PlayVoltz
Submission Time 2023-12-24 02:41:08
Score 0
Max Time N/A
Max Memory N/A

Compile Error

newjeans.cpp: In function ‘long long int f(long long int, long long int)’:
newjeans.cpp:14:18: error: invalid types ‘long long int[int32_t {aka int}]’ for array subscript
14 | sum+=c[vect[--L]];
| ^
newjeans.cpp:15:13: error: invalid types ‘long long int[int32_t {aka int}]’ for array subscript
15 | ++c[vect[L]];
| ^
newjeans.cpp:18:18: error: invalid types ‘long long int[int32_t {aka int}]’ for array subscript
18 | sum+=c[vect[++R]];
| ^
newjeans.cpp:19:13: error: invalid types ‘long long int[int32_t {aka int}]’ for array subscript
19 | ++c[vect[R]];
| ^
newjeans.cpp:22:13: error: invalid types ‘long long int[int32_t {aka int}]’ for array subscript
22 | --c[vect[L]];
| ^
newjeans.cpp:23:18: error: invalid types ‘long long int[int32_t {aka int}]’ for array subscript
23 | sum-=c[vect[L++]];
|