QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#290157#6794. Sequence to Sequencerepoman#Compile Error//Rust2.4kb2023-12-24 14:50:492023-12-24 14:50:50

详细

error[E0608]: cannot index into a value of type `{integer}`
  --> answer.code:41:12
   |
41 |         if b[i] != 0 {
   |            ^^^^

error[E0608]: cannot index into a value of type `{integer}`
  --> answer.code:45:22
   |
45 |             let dr = a[i] - 1;
   |                      ^^^^

error[E0608]: cannot index into a value of type `i64`
  --> answer.code:83:31
   |
83 |             mt = cmp::max(mt, a[i]);
   |                               ^^^^

error: aborting due to 3 previous errors

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