Problem toxic
User Ok
Submission Time 2024-01-07 14:40:56
Score 0
Max Time N/A
Max Memory N/A

Compile Error

toxic.cpp: In function ‘void findtoxic(std::vector<int>, int)’:
toxic.cpp:143:51: error: conversion from ‘vector<std::vector<int>>’ to non-scalar type ‘vector<std::pair<std::vector<int>, int>>’ requested
143 | vector<pair<vector<int>,int>> pros = segregate(ve,past,two);
| ~~~~~~~~~^~~~~~~~~~~~~
toxic.cpp:148:26: error: could not convert ‘pros.std::vector<std::pair<std::vector<int>, int> >::operator[](((std::vector<std::pair<std::vector<int>, int> >::size_type)i))’ from ‘__gnu_cxx::__alloc_traits<std::allocator<std::pair<std::vector<int>, int> >, std::pair<std::vector<int>, int> >::value_type’ {aka ‘std::pair<std::vector<int>, int>’} to ‘std::vector<int>’
148 | if(iquery(pros[i]) != pros[i].size()){
| ^
|