Problem card
User YongXin
Submission Time 2023-06-05 15:39:44
Score 0
Max Time N/A
Max Memory N/A

Compile Error

card.cpp:3:15: error: ‘m’ has not been declared
3 | void s(int& a,m,k){
| ^
card.cpp:3:17: error: ‘k’ has not been declared
3 | void s(int& a,m,k){
| ^
card.cpp: In function ‘void s(int&, int, int)’:
card.cpp:4:11: error: ‘k’ was not declared in this scope
4 | char t=a[k];
| ^
card.cpp:5:7: error: ‘i’ was not declared in this scope
5 | for (i=k+1;i<m;++i) a[i-1]=a[i];
| ^
card.cpp:5:15: error: ‘m’ was not declared in this scope
5 | for (i=k+1;i<m;++i) a[i-1]=a[i];
| ^
card.cpp:6:4: error: ‘m’ was not declared in this scope
6 | a[m-1]=t;
| ^
card.cpp: In function ‘int main()’:
card.cpp:13:7: error: ‘i’ was not declared in this scope
13 | for (i=0;i<m;++i) a[i]=i;
| ^
card.cpp:14:7: error: ‘i’ was not declared in this scope
14 | for (i=0;i<f.size();++i){