{"record":{"id":"d1ee4145e3f37967","repo":"mame/quine-relay","slug":"integer-expected-d1ee41","errorCode":null,"errorMessage":"Integer expected","messagePattern":"Integer expected","errorType":"exception","errorClass":"RuntimeError","httpStatus":null,"severity":"error","filePath":"vendor/aheui.rb","lineNumber":20,"sourceCode":"\ncode = $<.each_line.map do |s|\n  s.chomp.unpack(\"U*\").map do |c|\n    if 0xac00 <= c && c <= 0xd7a3\n      c -= 0xac00\n      # Hangul initial consonant, vowel, final consonant\n      [c / 21 / 28, c / 28 % 21, c % 28]\n    end\n  end\nend\n\ndef read_int\n  s = \"\"\n  while true\n    ch = $stdin.getc\n    case ch\n    when /\\d+/ then s << ch\n    when /\\s+/ then break\n    else raise \"Integer expected\"\n    end\n  end\n  s.to_i\nend\n\nSTROKE_TABLE = [0,2,4,4,2,5,5,3,5,7,9,9,7,9,9,8,4,4,6,2,4,nil,3,4,3,4,4,nil]\n\nx, y, dx, dy, s = 0, 0, 0, 1, 0\nss = (0..27).map { [] }\ndef (ss[21]).pop; shift; end # queue\nss[27] = nil # extension protocol\n\ncheck_size = -> n do\n  if ss[s].size >= n\n    true\n  else\n    dx, dy = -dx, -dy\n    false","sourceCodeStart":2,"sourceCodeEnd":38,"githubUrl":"https://github.com/mame/quine-relay/blob/c2aa5098d3e95409a36185b16371089dd04db642/vendor/aheui.rb#L2-L38","documentation":"Error \"Integer expected\" thrown in mame/quine-relay.","triggerScenarios":"Thrown at vendor/aheui.rb:20 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"c2aa5098d3e95409a36185b16371089dd04db642","analyzedAt":"2026-08-21T15:28:43.741Z","schemaVersion":2},"datasetVersion":"2026-08-21T18:17:14.833Z"}