Problem pairs
User Elwinthenerd
Submission Time 2024-11-14 09:36:18
Score 0
Max Time N/A
Max Memory N/A

Compile Error

pairs.cpp: In function ‘int main()’:
pairs.cpp:13:15: error: ‘class std::priority_queue<long long int>’ has no member named ‘push_back’
13 | W.push_back(V[i] * V[j]);
| ^~~~~~~~~
pairs.cpp:16:14: error: no match for ‘operator[]’ (operand types are ‘std::priority_queue<long long int>’ and ‘long long int’)
16 | cout << W[M-1] << endl;
| ^