QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#801816#9804. Guess the PolygonGuanYunchangCompile Error//Rust2.9kb2024-12-07 09:51:322024-12-07 09:51:33

詳細信息

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:44:62
   |
44 |                 # print(f'last_len = {last_len} , len = {len}')
   |                                                              ^^

error: aborting due to 2 previous errors

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