Problem segmenttreebeats
User PlayVoltz
Submission Time 2023-12-20 12:06:33
Score 0
Max Time N/A
Max Memory N/A

Compile Error

segmenttreebeats.cpp: In function ‘int main()’:
segmenttreebeats.cpp:17:45: error: invalid type argument of unary ‘*’ (have ‘int’)
17 | for (int i=0; i<temp.size(); ++i)vect[(*i)]+=temp[i]-'0';
| ^