Problem | towers |
---|---|
User | PlayVoltz |
Submission Time | 2023-09-28 19:26:59 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
towers.cpp: In function ‘long long int bstalow(long long int)’:
towers.cpp:15:18: error: request for member ‘first’ in ‘svect.std::vector<long long int>::operator[](((std::vector<long long int>::size_type)mid))’, which is of non-class type ‘__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type’ {aka ‘long long int’}
15 | if (svect[mid].first<=val){
| ^~~~~
towers.cpp: In function ‘long long int bstahigh(long long int)’:
towers.cpp:30:18: error: request for member ‘first’ in ‘svect.std::vector<long long int>::operator[](((std::vector<long long int>::size_type)mid))’, which is of non-class type ‘__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type’ {aka ‘long long int’}
30 | if (svect[mid].first<val){
| ^~~~~
towers.cpp: In function ‘int32_t main()’:
towers.cpp:68:16: error: cannot convert ‘st