Problem hackthectf
User Ski3r3n
Submission Time 2023-05-05 15:27:29
Score 0
Max Time N/A
Max Memory N/A

Compile Error

hackthectf.cpp: In function ‘int compare(std::deque<long long int>)’:
hackthectf.cpp:6:12: error: cannot convert ‘std::deque<long long int>’ to ‘int’ in return
6 | return k;
| ^
In file included from /usr/include/c++/9/bits/stl_algobase.h:71,
from /usr/include/c++/9/bits/specfun.h:45,
from /usr/include/c++/9/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:41,
from hackthectf.cpp:1:
/usr/include/c++/9/bits/predefined_ops.h: In instantiation of ‘constexpr bool __gnu_cxx::__ops::_Iter_comp_iter<_Compare>::operator()(_Iterator1, _Iterator2) [with _Iterator1 = std::_Deque_iterator<long long int, long long int&, long long int*>; _Iterator2 = std::_Deque_iterator<long long int, long long int&, long long int*>; _Compare = int]’:
/usr/include/c++/9/bits/stl_algo.h:1852:14: required from ‘void std::__insertion_sort(_RandomAc