Problem | speakers |
---|---|
User | Henries |
Submission Time | 2024-11-10 23:16:25 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
speakers.cpp: In function ‘int main()’:
speakers.cpp:14:35: error: cannot convert ‘<brace-enclosed initializer list>’ to ‘__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type’ {aka ‘long long int’} in assignment
14 | v[i] = {max(0LL, d-r),min(m,d+r)};
| ^
speakers.cpp:20:12: error: request for member ‘second’ in ‘v.std::vector<long long int>::operator[](((std::vector<long long int>::size_type)i))’, which is of non-class type ‘__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type’ {aka ‘long long int’}
20 | if (v[i].second < speakerrange){
| ^~~~~~
speakers.cpp:22:24: error: request for member ‘second’ in ‘v.std::vector<long long int>::operator[](((std::vector<long long int>::size_type)i))’, which is of non-class type ‘__gnu_cxx::__alloc_traits<std::allocator<long long int>,