| Problem | prefixsums |
|---|---|
| User | jiazethesigma |
| Submission Time | 2025-12-01 12:28:40 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
prefixsums.cpp: In function ‘int main()’:
prefixsums.cpp:10:14: error: type/value mismatch at argument 1 in template parameter list for ‘template<class _Tp, class _Alloc> class std::vector’
10 | vector<tuple> b;
| ^
prefixsums.cpp:10:14: note: expected a type, got ‘tuple’
prefixsums.cpp:10:14: error: template argument 2 is invalid
prefixsums.cpp:12:8: error: ‘x’ was not declared in this scope
12 | cin>>x[i];
| ^
prefixsums.cpp:18:5: error: request for member ‘pushback’ in ‘b’, which is of non-class type ‘int’
18 | b.pushback({l,r});
| ^~~~~~~~
prefixsums.cpp:26:15: error: invalid types ‘int[int]’ for array subscript
26 | cout<<(c[b[i].second()-1]-c[b[i].first()-1])<<endl;
| ^
prefixsums.cpp:26:34: error: invalid types ‘int[int]’ for array subscript
26 | cout<<(c[b[i].second()-1]-c[b[i].first()-1])<<endl;