| Problem | prefixsums |
|---|---|
| User | jiazethesigma |
| Submission Time | 2025-12-01 12:29:24 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
prefixsums.cpp: In function ‘int main()’:
prefixsums.cpp:18:5: error: ‘class std::vector<std::pair<int, int> >’ has no member named ‘pushback’; did you mean ‘push_back’?
18 | b.pushback({l,r});
| ^~~~~~~~
| push_back
prefixsums.cpp:26:24: error: expression cannot be used as a function
26 | cout<<(c[b[i].second()-1]-c[b[i].first()-1])<<endl;
| ^
prefixsums.cpp:26:42: error: expression cannot be used as a function
26 | cout<<(c[b[i].second()-1]-c[b[i].first()-1])<<endl;
| ^