QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#870860#8618. Have You Seen This Subarray?ucup-team3727#Compile Error//C++203.0kb2025-01-25 17:59:142025-01-25 17:59:41

詳細信息

answer.code: In function ‘int main()’:
answer.code:97:20: error: no match for ‘operator[]’ (operand types are ‘std::pair<const int, std::vector<std::pair<int, int> > >’ and ‘int’)
   97 |             pos = x[0];
      |                    ^
answer.code:98:26: error: no match for ‘operator[]’ (operand types are ‘std::pair<const int, std::vector<std::pair<int, int> > >’ and ‘int’)
   98 |             dfs(dfs, 1, x[1], x[2]);
      |                          ^
answer.code:98:32: error: no match for ‘operator[]’ (operand types are ‘std::pair<const int, std::vector<std::pair<int, int> > >’ and ‘int’)
   98 |             dfs(dfs, 1, x[1], x[2]);
      |                                ^