QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#801779#9804. Guess the PolygonHuangHanShengCompile Error//Rust1.8kb2024-12-07 09:16:432024-12-07 09:16:43

详细

error: character literal may only contain one codepoint
 --> answer.code:7:12
  |
7 |     print(f'? {x.numerator} {x.denominator}')
  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
help: if you meant to write a `str` literal, use double quotes
  |
7 |     print(f"? {x.numerator} {x.denominator}")
  |            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

error[E0762]: unterminated character literal
  --> answer.code:51:41
   |
51 |             print(f'i = {i}, ans = {ans}')
   |                                         ^^

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0762`.