Problem | card |
---|---|
User | wongethan8192 |
Submission Time | 2023-03-08 11:37:49 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
card.cpp: In function ‘int main()’:
card.cpp:7:38: error: request for member ‘erase’ in ‘d’, which is of non-class type ‘int [a]’
7 | for(char&z:c)if(z=='A'){int e=d[0];d.erase(d.begin()+0);d.push_back(e);}else if(z=='B'){int e=d[1];d.erase(d.begin()+1);d.push_back(e);}
| ^~~~~
card.cpp:7:46: error: request for member ‘begin’ in ‘d’, which is of non-class type ‘int [a]’
7 | for(char&z:c)if(z=='A'){int e=d[0];d.erase(d.begin()+0);d.push_back(e);}else if(z=='B'){int e=d[1];d.erase(d.begin()+1);d.push_back(e);}
| ^~~~~
card.cpp:7:59: error: request for member ‘push_back’ in ‘d’, which is of non-class type ‘int [a]’
7 | for(char&z:c)if(z=='A'){int e=d[0];d.erase(d.begin()+0);d.push_back(e);}else if(z=='B'){int e=d[1];d.erase(d.begin()+1);d.push_back(e);}
| ^~~~~~~~~
card.cpp:7:102: error: requ