Problem | bacteria |
---|---|
User | PlayVoltz |
Submission Time | 2023-09-18 16:14:58 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
bacteria.cpp:9:13: error: conflicting declaration ‘std::vector<std::pair<long long int, long long int> > segmenttree’
9 | vector<pii> segmenttree;
| ^~~~~~~~~~~
bacteria.cpp:8:18: note: previous declaration as ‘std::vector<long long int> segmenttree’
8 | vector<int> arr, segmenttree, lazytree;
| ^~~~~~~~~~~
bacteria.cpp: In function ‘void build(long long int, long long int, long long int)’:
bacteria.cpp:17:26: error: cannot convert ‘std::pair<long long int, long long int>’ to ‘__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type’ {aka ‘long long int’} in assignment
17 | segmenttree[index] = mp(arr[low], arr[low]%2);
| ^
| |
| std::pair<long long int, long long int>
bacteria.cpp:23:77: error: could not convert ‘segmenttree.