提交记录 #406
提交时间:2024-12-03 16:43:30
语言:c
状态:Accepted
编译情况:编译成功
code.c: In function ‘input’:
code.c:30:1: warning: control reaches end of non-void function [-Wreturn-type]
30 | }
| ^
code.c: In function ‘output’:
code.c:36:1: warning: control reaches end of non-void function [-Wreturn-type]
36 | }
| ^
固定测试点#1:
固定测试点#2:
额外测试点#3600:
53【小学】比较大小——指针
int input(int *array,int n){
for(int i=0;i<n;i++){
scanf("%d",&array[i]);
}
}
int output(int *array,int n){
for(int i=0;i<n;i++){
printf("%d,",array[i]);
}
printf("\n");
}
void swap(int *a,int *b){
int temp;
temp=*a;
*a=*b;
*b=temp;
}