QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#722602#5754. Minimum Scalar ProductZhangYiDeCompile Error//C++98737b2024-11-07 19:38:212024-11-07 19:38:21

详细

answer.code: In function ‘int main()’:
answer.code:9:49: error: ‘>>’ should be ‘> >’ within a nested template argument list
    9 |     priority_queue<int, vector<int>, greater<int>> pq1 = {};
      |                                                 ^~
      |                                                 > >
answer.code:9:52: error: in C++98 ‘pq1’ must be initialized by constructor, not by ‘{...}’
    9 |     priority_queue<int, vector<int>, greater<int>> pq1 = {};
      |                                                    ^~~
answer.code:10:25: error: in C++98 ‘pq2’ must be initialized by constructor, not by ‘{...}’
   10 |     priority_queue<int> pq2 = {};
      |                         ^~~