Problem card
User Zachareeeee
Submission Time 2024-11-28 17:28:42
Score 0
Max Time N/A
Max Memory N/A

Compile Error

card.cpp: In function ‘int main()’:
card.cpp:11:5: error: ‘class std::vector<int>’ has no member named ‘pushback’; did you mean ‘push_back’?
11 | v.pushback(i);
| ^~~~~~~~
| push_back
card.cpp:14:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
14 | if (order[i] == "A"){
| ^~~
card.cpp:15:6: error: ‘class std::vector<int>’ has no member named ‘pushback’; did you mean ‘push_back’?
15 | v.pushback(v[0]);
| ^~~~~~~~
| push_back
card.cpp:16:13: error: no matching function for call to ‘std::vector<int>::erase(int)’
16 | v.erase(0);
| ^
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,