Advertisement
Guest User

Untitled

a guest
Mar 1st, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
OCaml 0.66 KB | None | 0 0
  1. type plate = int * int * int ;;
  2. type game_statu =
  3.    Non_term of int
  4.   |P1 of int
  5.   |P2 of int
  6.   |Match_nul of int;;
  7.  
  8. let init a:plate =(0,a,a);;
  9.  
  10. let display a:plate =
  11.   let (b,c,d)=
  12.   match a with
  13.      (-1,_,_) -> ("x"," "," ")
  14.     |(_,_,_) -> (" ","X","X")
  15. in print_string "b^c^d";;
  16.  
  17.  
  18.  
  19. Warning Y: unused variable d.
  20. Characters 32-33:
  21.     let (b,c,d)=
  22.            ^
  23. Warning Y: unused variable c.
  24. Characters 30-31:
  25.     let (b,c,d)=
  26.          ^
  27. Warning Y: unused variable b.
  28. Characters 117-137:
  29.   in print_string "b^c^d";;
  30.      ^^^^^^^^^^^^^^^^^^^^
  31. Error: This expression has type unit but is here used with type
  32.          plate = int * int * int
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement