fork download
  1.  
  2. szuk_rek(A[],X,left,right)
  3. {
  4. if(A[left] > X && A[right] < X){
  5. return -1; //fałsz;
  6. }
  7. if(A[right]==X){
  8. return right; //zaokrąglamy w dół;
  9. }
  10. if(A[(left+right)/2] == X){
  11. return (L + R)/2 // l -left, r - right, skrotowo bede pisac;
  12. }
  13. if(A[(L + R)/2] > X){
  14. szuk_rek(A[], (L + R)/2, R);
  15. }
  16. if(A[(L + R)/2] < X){
  17. szuk_rek(A[], L, (L + R)/2);
  18. }
  19.  
  20. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c:2:10: error: unknown type name ‘A’
prog.c:2:14: error: unknown type name ‘X’
prog.c:2:16: error: unknown type name ‘left’
prog.c:2:21: error: unknown type name ‘right’
stdout
Standard output is empty