Problem bigredarrow
User MegaG
Submission Time 2025-09-10 20:06:08
Score 0
Max Time N/A
Max Memory N/A

Compile Error

bigredarrow.cpp: In function ‘int main()’:
bigredarrow.cpp:20:5: error: request for member ‘push_back’ in ‘a’, which is of non-class type ‘std::deque<int> [n]’
20 | a.push_back(input);
| ^~~~~~~~~
bigredarrow.cpp:25:5: error: request for member ‘push_back’ in ‘b’, which is of non-class type ‘std::deque<int> [n]’
25 | b.push_back(input2);
| ^~~~~~~~~
bigredarrow.cpp:28:17: error: cannot convert ‘std::deque<int>’ to ‘int’ in initialization
28 | int chotu = a[0];
| ~~~^
| |
| std::deque<int>
bigredarrow.cpp:32:11: error: no match for ‘operator>’ (operand types are ‘std::deque<int>’ and ‘int’)
32 | if(b[i] > 0){
| ~~~~ ^ ~
| | |
| | int
| std::deque<int>
In file included from /usr/include/c++/9/bits/stl_algobase.h:64,
f