Problem | rollercoaster |
---|---|
User | pseudocoder101 |
Submission Time | 2025-06-20 14:58:46 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
rollercoaster.cpp: In function ‘int main()’:
rollercoaster.cpp:21:17: error: ‘j’ was not declared in this scope
21 | a.push_back(q[j]);
| ^
rollercoaster.cpp:27:10: error: expected ‘;’ before ‘}’ token
27 | a.clear
| ^
| ;
28 | }
| ~
rollercoaster.cpp:27:5: error: invalid use of non-static member function ‘void std::vector<_Tp, _Alloc>::clear() [with _Tp = long long int; _Alloc = std::allocator<long long int>]’
27 | a.clear
| ~~^~~~~
In file included from /usr/include/c++/9/vector:67,
from /usr/include/c++/9/functional:62,
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 rollercoaster.cpp:1:
/usr/include/c++/9/bits/stl_vector.h:1495:7: