fork download
  1. let rec formatEqual format string =
  2. let firstChar = string.Chars(0)
  3. match format with
  4. | "" -> string.Equals("")
  5. | s -> match format.Chars(0) with
  6. // | "?"
  7. // | "*"
  8. | c -> c.Equals(firstChars) && formatEqual format.[1..] string.[1..]
  9.  
  10. let format = System.Console.ReadLine()
  11. let name = System.Console.ReadLine()
  12. let res = formatEqual format name
  13.  
  14. printfn "%b" res
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
/home/0ojR7O/prog.fs(2,1): warning FS0058: Possible incorrect indentation: this token is offside of context started at position (1:1). Try indenting this token further or using standard formatting conventions.

/home/0ojR7O/prog.fs(2,1): warning FS0058: Possible incorrect indentation: this token is offside of context started at position (1:1). Try indenting this token further or using standard formatting conventions.

/home/0ojR7O/prog.fs(3,2): error FS0010: Unexpected keyword 'match' in binding. Expected incomplete structured construct at or before this point or other token.

/home/0ojR7O/prog.fs(2,1): error FS0577: No body found for this 'let' or 'do'. The body must be indented to the same column as this line.

/home/0ojR7O/prog.fs(8,9): warning FS0058: Possible incorrect indentation: this token is offside of context started at position (5:12). Try indenting this token further or using standard formatting conventions.

/home/0ojR7O/prog.fs(10,1): error FS0010: Incomplete structured construct at or before this point in binding. Expected incomplete structured construct at or before this point or other token.

/home/0ojR7O/prog.fs(10,1): warning FS0058: Possible incorrect indentation: this token is offside of context started at position (1:1). Try indenting this token further or using standard formatting conventions.

/home/0ojR7O/prog.fs(10,1): warning FS0058: Possible incorrect indentation: this token is offside of context started at position (1:1). Try indenting this token further or using standard formatting conventions.

/home/0ojR7O/prog.fs(11,1): warning FS0058: Possible incorrect indentation: this token is offside of context started at position (1:1). Try indenting this token further or using standard formatting conventions.

/home/0ojR7O/prog.fs(11,1): warning FS0058: Possible incorrect indentation: this token is offside of context started at position (1:1). Try indenting this token further or using standard formatting conventions.

/home/0ojR7O/prog.fs(12,1): warning FS0058: Possible incorrect indentation: this token is offside of context started at position (1:1). Try indenting this token further or using standard formatting conventions.

/home/0ojR7O/prog.fs(12,1): warning FS0058: Possible incorrect indentation: this token is offside of context started at position (1:1). Try indenting this token further or using standard formatting conventions.

/home/0ojR7O/prog.fs(14,1): warning FS0058: Possible incorrect indentation: this token is offside of context started at position (1:1). Try indenting this token further or using standard formatting conventions.

/home/0ojR7O/prog.fs(14,1): warning FS0058: Possible incorrect indentation: this token is offside of context started at position (1:1). Try indenting this token further or using standard formatting conventions.

/home/0ojR7O/prog.fs(14,1): error FS0010: Incomplete structured construct at or before this point in implementation file
stdout
Standard output is empty