Problem card
User wongethan8192
Submission Time 2023-03-08 11:37:37
Score 0
Max Time N/A
Max Memory N/A

Compile Error

card.cpp: In function ‘int main()’:
card.cpp:6:7: error: ‘i’ was not declared in this scope
6 | int d[i];for(int i=0;i<a;i++)d[i]=i;
| ^
card.cpp:6:30: error: ‘d’ was not declared in this scope
6 | int d[i];for(int i=0;i<a;i++)d[i]=i;
| ^
card.cpp:7:31: error: ‘d’ was not declared in this scope
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:95: error: ‘d’ was not declared in this scope
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:8:7: error: ‘d’ was not declared in this scope
8 | cout<<d[b-1]<<' '<<d[b]<&