Problem | newjeans |
---|---|
User | haydendoo |
Submission Time | 2023-03-23 17:14:04 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
newjeans.cpp: In function ‘long long int C(long long int, long long int)’:
newjeans.cpp:234:36: error: incompatible types in assignment of ‘long long int’ to ‘long long int [100001]’
234 | ++cnt[a[rptr]]; cnt +=cnt[a[rptr]]; // if(cnt[a[rptr]]==1) ++dup; else if(cnt[a[rptr]]==2) --dup;
| ^
newjeans.cpp:238:35: error: incompatible types in assignment of ‘long long int’ to ‘long long int [100001]’
238 | ++cnt[a[lptr]]; cnt+=cnt[a[lptr]]; // if(cnt[a[lptr]]==1) ++dup; else if(cnt[a[lptr]]==2) --dup;
| ^
newjeans.cpp:249:34: error: incompatible types in assignment of ‘long long int’ to ‘long long int [100001]’
249 | while(lptr<i) { cnt-=cnt[a[lptr]];
| ^