Problem | newjeans |
---|---|
User | PlayVoltz |
Submission Time | 2023-12-24 02:41:37 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
newjeans.cpp: In function ‘long long int f(long long int, long long int)’:
newjeans.cpp:15:18: error: invalid types ‘long long int[int]’ for array subscript
15 | sum+=c[vect[--L]];
| ^
newjeans.cpp:16:13: error: invalid types ‘long long int[int]’ for array subscript
16 | ++c[vect[L]];
| ^
newjeans.cpp:19:18: error: invalid types ‘long long int[int]’ for array subscript
19 | sum+=c[vect[++R]];
| ^
newjeans.cpp:20:13: error: invalid types ‘long long int[int]’ for array subscript
20 | ++c[vect[R]];
| ^
newjeans.cpp:23:13: error: invalid types ‘long long int[int]’ for array subscript
23 | --c[vect[L]];
| ^
newjeans.cpp:24:18: error: invalid types ‘long long int[int]’ for array subscript
24 | sum-=c[vect[L++]];
| ^
newjeans.cpp:27:13: error: invalid types ‘long long int[int]’ for arra