Problem arrayngement
User Red123
Submission Time 2026-06-29 15:48:12
Score 0
Max Time N/A
Max Memory N/A

Compile Error

arrayngement.cpp: In function ‘int main()’:
arrayngement.cpp:17:13: error: ‘class std::deque<long long int>’ has no member named ‘first’
17 | sort(deque.first(), deque.end());
| ^~~~~
arrayngement.cpp:27:4: error: ‘dequee’ was not declared in this scope; did you mean ‘deque’?
27 | dequee.pop_front();
| ^~~~~~
| deque
arrayngement.cpp:32:15: error: no match for ‘operator>>’ (operand types are ‘std::basic_istream<char>::__istream_type’ {aka ‘std::basic_istream<char>’} and ‘const char [2]’)
32 | cin >> total >> "\n";
| ~~~~~~~~~~~~ ^~ ~~~~
| | |
| | const char [2]
| std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}
In file included from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomp