| Problem | choosingcandies |
|---|---|
| User | Dolphy |
| Submission Time | 2026-10-15 12:16:22 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
choosingcandies.cpp: In function ‘int main()’:
choosingcandies.cpp:13:76: error: base operand of ‘->’ has non-pointer type ‘std::map<int, int>’
13 | for (int i=0; i<n; i++) {m[a[i]]=i+1; auto it=m.lower_bound(k-a[i]); sm+=m->second;}
| ^~