fork download
  1. #include <stdio.h>
  2. no_search(int a[],int n,int x);
  3. no_search(int a[],int n,int x){
  4. int ret=-1;
  5. return ret;
  6. }
  7. int main(void) {
  8. int n,x;
  9. scanf("%d,%d",&n,&x);
  10. int *a;
  11. a=(int*)malloc(sizeof(int)*n);
  12. int ans=no_search(a,n,x);
  13. if(ans!=-1){
  14. printf("%d\n",a[ans]);
  15. }
  16. else printf("not found\n");
  17.  
  18. return 0;
  19. }
  20.  
Success #stdin #stdout 0s 5236KB
stdin
Standard input is empty
stdout
not found