Problem | dreaming |
---|---|
User | Xiaoyang |
Submission Time | 2023-11-17 19:18:21 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
dreaming.cpp: In function ‘int travelTime(int, int, int, int*, int*, int*)’:
dreaming.cpp:112:22: error: no matching function for call to ‘sort(std::vector<long long int>&)’
112 | while(true)sort(ans);
| ^
In file included from /usr/include/c++/9/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from dreaming.cpp:3:
/usr/include/c++/9/bits/stl_algo.h:4863:5: note: candidate: ‘template<class _RAIter> void std::sort(_RAIter, _RAIter)’
4863 | sort(_RandomAccessIterator __first, _RandomAccessIterator __last)
| ^~~~
/usr/include/c++/9/bits/stl_algo.h:4863:5: note: template argument deduction/substitution failed:
dreaming.cpp:112:22: note: candidate expects 2 arguments, 1 provided
112 | while(true)sort(ans);
| ^
In file included from /usr/include/c++/9/algorithm:62,
from /usr/include