Problem sort
User StarSparrowFox
Submission Time 2024-12-05 20:24:36
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sort.cpp: In function ‘int main()’:
sort.cpp:5:35: error: cannot bind non-const lvalue reference of type ‘int&’ to an rvalue of type ‘int’
5 | ios::sync_with_stdio(0); cin,tie(0);
| ^
In file included from /usr/include/c++/9/functional:54,
from /usr/include/c++/9/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/9/algorithm:71,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from sort.cpp:1:
/usr/include/c++/9/tuple:1611:19: note: initializing argument 1 of ‘constexpr std::tuple<_Elements& ...> std::tie(_Elements& ...) [with _Elements = {int}]’
1611 | tie(_Elements&... __args) noexcept
| ~~~~~~~~~~^~~~~~~~~~
sort.cpp:14:38: error: expected ‘;’ before ‘for’
14 | sort(numbers.begin(), numbers.end())
| ^
|