Problem oranges2
User personjs
Submission Time 2025-03-07 17:56:33
Score 0
Max Time N/A
Max Memory N/A

Compile Error

oranges2.cpp: In function ‘int main()’:
oranges2.cpp:46:15: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
46 | size[i] = 1;
| ^
oranges2.cpp:62:23: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
62 | size[i] = 1;
| ^
oranges2.cpp:74:37: error: ‘__gnu_cxx::__alloc_traits<std::allocator<std::tuple<int, int, int> >, std::tuple<int, int, int> >::value_type’ {aka ‘class std::tuple<int, int, int>’} has no member named ‘first’
74 | result = edges[mid].first; // Store the maximum edge weight for this query
| ^~~~~