Problem leftright
User pearl333
Submission Time 2025-02-15 10:58:22
Score 0
Max Time N/A
Max Memory N/A

Compile Error

leftright.cpp:5:1: error: ‘deque’ does not name a type
5 | deque<int> left;
| ^~~~~
leftright.cpp:6:1: error: ‘deque’ does not name a type
6 | deque<int> right;
| ^~~~~
leftright.cpp: In function ‘int main()’:
leftright.cpp:17:6: error: no match for ‘operator<<’ (operand types are ‘std::istream’ {aka ‘std::basic_istream<char>’} and ‘long long int’)
17 | cin<<a;
| ~~~^~~
| | |
| | long long int
| std::istream {aka std::basic_istream<char>}
leftright.cpp:17:6: note: candidate: ‘operator<<(int, long long int)’ <built-in>
17 | cin<<a;
| ~~~^~~
leftright.cpp:17:6: note: no known conversion for argument 1 from ‘std::istream’ {aka ‘std::basic_istream<char>’} to ‘int’
In file included from /usr/include/c++/9/bits/basic_string.h:48,
from /usr/include/c++/9/string:55,
fr