QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#865375#7942. $K$ SubsequencesMaMengQiCompile Error//C++17570b2025-01-21 17:17:022025-01-21 17:17:03

详细

answer.code: In function ‘int main()’:
answer.code:16:47: error: conversion from ‘std::_Rb_tree_const_iterator<std::pair<long long int, long long int> >’ to non-scalar type ‘std::pair<long long int, long long int>’ requested
   16 |                                 pair<ll,ll> t=it;
      |                                               ^~
answer.code:23:48: error: conversion from ‘std::_Rb_tree_const_iterator<std::pair<long long int, long long int> >::_Self’ to non-scalar type ‘std::pair<long long int, long long int>’ requested
   23 |                                 pair<ll,ll> t=(--it);
      |                                               ~^~~~~