Nu aveti permisiuni pentru a descarca fisierul grader_test5.in
Borderou de evaluare (job #2728378)
Utilizator | Cristian Strat wickedman | Data | 23 martie 2021 10:23:23 |
---|---|---|---|
Problema | Zeap | Status | done |
Runda | Arhiva de probleme | Compilator | rs | Vezi sursa |
Scor | 50 |
Raport evaluator
Compilare:
warning: cannot borrow `*self` as mutable because it is also borrowed as immutable
--> main.rs:68:25
|
67 | if let Some(after) = self.a.range((Excluded(x), Unbounded)).next() {
| ------ immutable borrow occurs here
68 | self.add_diff(after - x)
| ^^^^ ----- immutable borrow later used here
| |
| mutable borrow occurs here
|
= note: `#[warn(mutable_borrow_reservation_conflict)]` on by default
= warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future
= note: for more information, see issue #59159 <https://github.com/rust-lang/rust/issues/59159>
warning: cannot borrow `*self` as mutable because it is also borrowed as immutable
--> main.rs:86:29
|
85 | if let Some(before) = self.a.range((Unbounded, Excluded(x))).next_back() {
| ------ immutable borrow occurs here
86 | self.add_diff(after - before)
| ^^^^ ------ immutable borrow later used here
| |
| mutable borrow occurs here
|
= warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future
= note: for more information, see issue #59159 <https://github.com/rust-lang/rust/issues/59159>
warning: cannot borrow `*self` as mutable because it is also borrowed as immutable
--> main.rs:71:25
|
70 | if let Some(before) = self.a.range((Unbounded, Excluded(x))).next_back() {
| ------ immutable borrow occurs here
71 | self.add_diff(x - before)
| ^^^^ ------ immutable borrow later used here
| |
| mutable borrow occurs here
|
= warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future
= note: for more information, see issue #59159 <https://github.com/rust-lang/rust/issues/59159>
warning: cannot borrow `*self` as mutable because it is also borrowed as immutable
--> main.rs:79:25
|
78 | if let Some(after) = self.a.range((Excluded(x), Unbounded)).next() {
| ------ immutable borrow occurs here
79 | self.rem_diff(after - x)
| ^^^^ ----- immutable borrow later used here
| |
| mutable borrow occurs here
|
Test | Timp executie | Memorie folosita | Mesaj | Punctaj/test |
---|---|---|---|---|
1 | 4ms | 262kb | OK | 10 |
2 | 77ms | 393kb | OK | 10 |
3 | 428ms | 876kb | OK | 10 |
4 | 669ms | 1179kb | OK | 10 |
5 | 1149ms | 1822kb | OK | 10 |
6 | 1202ms | 1806kb | Time limit exceeded | 0 |
7 | 1202ms | 2469kb | Time limit exceeded | 0 |
8 | 1202ms | 3092kb | Time limit exceeded | 0 |
9 | 1200ms | 1531kb | Time limit exceeded | 0 |
10 | 1202ms | 3358kb | Time limit exceeded | 0 |
Punctaj total | 50 |
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !