QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#705797#9537. Chinese Chessucup-team3607#Compile Error//Rust9.3kb2024-11-03 01:43:202024-11-03 01:43:21

詳細信息

error[E0308]: mismatched types
   --> answer.code:145:47
    |
145 |                 hm.entry(q).or_default().push(p);
    |                                          ---- ^ expected `char`, found `&char`
    |                                          |
    |                                          arguments to this method are incorrect
    |
note: method defined here
   --> /build/rustc-60UC9b/rustc-1.75.0+dfsg0ubuntu1~bpo0/library/alloc/src/vec/mod.rs:1880:12
help: consider dereferencing the borrow
    |
145 |                 hm.entry(q).or_default().push(*p);
    |                                               +

error: aborting due to previous error

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