fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5.  
  6. void foo(int[] x, int a, int b, int i, int j) return int
  7. int k=j
  8. int ct=0
  9. while k>i-1
  10. if x[k]<=b and not (x[k]<=a)
  11. ct=ct+1
  12. end
  13. k=k-1
  14. end
  15. end
  16.  
  17. int[] x=[11,10,10,5,10,15,20,10,7,11]
  18.  
  19. printf(foo(x,8,18,3,6))
  20. printf(foo(x,10,20,0,9))https://i...content-available-to-author-only...e.com/Co8Dcs#
  21. printf(foo(x,8,18,6,3))
  22. printf(foo(x,20,10,0,9))
  23. printf(foo(x,6,7,8,8))
  24.  
  25. return 0;
  26. }
  27.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function ‘main’:
prog.c:6:17: error: expected ‘;’, ‘,’ or ‘)’ before ‘x’
  void foo(int[] x, int a, int b, int i, int j) return int
                 ^
stdout
Standard output is empty