Problem lasers
User blackscreen1
Submission Time 2023-07-04 19:42:20
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lasers.cpp: In function ‘int main()’:
lasers.cpp:61:22: error: no match for ‘operator+=’ (operand types are ‘long long int’ and ‘std::vector<long long int>’)
61 | lhs[it.second] += q[cnt[it.second]];
| ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
lasers.cpp:63:25: error: ‘qq’ was not declared in this scope; did you mean ‘pq’?
63 | pq.push({it.first+qq[cnt[it.second]], it.second});
| ^~
| pq
lasers.cpp:63:55: error: no matching function for call to ‘std::priority_queue<std::pair<long long int, long long int>, std::vector<std::pair<long long int, long long int> >, std::greater<std::pair<long long int, long long int> > >::push(<brace-enclosed initializer list>)’
63 | pq.push({it.first+qq[cnt[it.second]], it.second});
| ^
In file included from /usr/include/c++/9/