fork download
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int no_search(int a[],int n,int x){
  5. return -1;
  6. }
  7.  
  8. int main(void) {
  9. int n,x,y;
  10. int i;
  11. int *a;
  12.  
  13. scanf("%d",&n);
  14. scanf("%d",&x);
  15.  
  16. a = (int *)malloc(sizeof(int)*n);
  17.  
  18. for(i=0;i<=n;i++){
  19. scanf("%d",&y);
  20. a[i] = y;
  21. }
  22.  
  23. if(no_search(a,n,x) == -1)
  24. printf("not found\n");
  25. }
  26.  
Success #stdin #stdout 0.01s 5280KB
stdin
12 5
4 2 17 11 8 13 3 5 13 12 10 1
stdout
not found