Problem prefixsums
User G
Submission Time 2024-12-09 14:44:45
Score 0
Max Time N/A
Max Memory N/A

Compile Error

prefixsums.cpp: In function ‘int main()’:
prefixsums.cpp:14:33: error: request for member ‘second’ in ‘que’, which is of non-class type ‘std::pair<long long int, long long int> [q]’
14 | for(ll i=0;i<n;i++)cout<<p[que.second]-p[que.first]<<'\n';
| ^~~~~~
prefixsums.cpp:14:47: error: request for member ‘first’ in ‘que’, which is of non-class type ‘std::pair<long long int, long long int> [q]’
14 | for(ll i=0;i<n;i++)cout<<p[que.second]-p[que.first]<<'\n';
| ^~~~~