| Problem | cpicsort |
|---|---|
| User | yq |
| Submission Time | 2026-06-24 08:55:27 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
cpicsort.cpp: In function ‘int main()’:
cpicsort.cpp:7:19: error: invalid use of member function ‘std::vector<_Tp, _Alloc>::const_iterator std::vector<_Tp, _Alloc>::end() const [with _Tp = long long int; _Alloc = std::allocator<long long int>; std::vector<_Tp, _Alloc>::const_iterator = __gnu_cxx::__normal_iterator<const long long int*, std::vector<long long int> >; typename __gnu_cxx::__alloc_traits<typename std::_Vector_base<_Tp, _Alloc>::_Tp_alloc_type>::const_pointer = const long long int*]’ (did you forget the ‘()’ ?)
7 | sort(A.begin(),A.end.())
| ~~^~~
| ()
cpicsort.cpp:8:15: error: ‘i’ was not declared in this scope
8 | for(int i=0; i<N; i++) {
| ^
cpicsort.cpp:12:40: error: expected ‘;’ before ‘for’
12 | sort(A.begin(),A.end(),greater<int>())
| ^
|