Problem | card |
---|---|
User | wongethan8192 |
Submission Time | 2023-03-08 11:49:36 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
card.cpp: In function ‘int main()’:
card.cpp:7:39: error: ‘class std::vector<int>’ has no member named ‘remove’
7 | for(char&z:c){if(z=='A'){int e=d[0];d.remove(d.begin(),d.end(),e);d.push_back(e);}else if(z=='B'){int e=d[1];d.remove(d.begin(),d.end(),e);d.push_back(e);}}
| ^~~~~~
card.cpp:7:112: error: ‘class std::vector<int>’ has no member named ‘remove’
7 | for(char&z:c){if(z=='A'){int e=d[0];d.remove(d.begin(),d.end(),e);d.push_back(e);}else if(z=='B'){int e=d[1];d.remove(d.begin(),d.end(),e);d.push_back(e);}}
| ^~~~~~