Problem | sos |
---|---|
User | Xiaoyang |
Submission Time | 2023-12-30 17:51:53 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
sos.cpp: In function ‘int main()’:
sos.cpp:8:12: error: request for member ‘push_back’ in ‘ans’, which is of non-class type ‘ll’ {aka ‘long long int’}
8 | #define pb push_back
| ^~~~~~~~~
sos.cpp:28:7: note: in expansion of macro ‘pb’
28 | ans.pb(a[i]);
| ^~
sos.cpp:32:27: error: invalid use of member function ‘std::vector<_Tp, _Alloc>::size_type std::vector<_Tp, _Alloc>::size() const [with _Tp = long long int; _Alloc = std::allocator<long long int>; std::vector<_Tp, _Alloc>::size_type = long unsigned int]’ (did you forget the ‘()’ ?)
32 | ans+=abs(x-alist[(alist.size)/2]);
| ~~~~~~~^~~~~
| ()