Borderou de evaluare (job #2653164)

Utilizator mihai50000Mihai-Cristian Popescu mihai50000 Data 27 septembrie 2020 11:31:50
Problema Algoritmul lui Euclid Status done
Runda Arhiva educationala Compilator rs | Vezi sursa
Scor 100

Raport evaluator

Compilare: warning: unused import: `std::fs` --> main.rs:1:5 | 1 | use std::fs; | ^^^^^^^ | = note: `#[warn(unused_imports)]` on by default warning: unnecessary parentheses around function argument --> main.rs:11:21 | 11 | return myGcd(b, (a % b)); | ^^^^^^^ help: remove these parentheses | = note: `#[warn(unused_parens)]` on by default warning: unused variable: `i` --> main.rs:23:9 | 23 | for i in 0..n | ^ help: if this is intentional, prefix it with an underscore: `_i` | = note: `#[warn(unused_variables)]` on by default warning: variable does not need to be mutable --> main.rs:5:10 | 5 | fn myGcd(mut a: i32, mut b: i32) -> i32{ | ----^ | | | help: remove this `mut` | = note: `#[warn(unused_mut)]` on by default warning: variable does not need to be mutable --> main.rs:5:22 | 5 | fn myGcd(mut a: i32, mut b: i32) -> i32{ | ----^ | | | help: remove this `mut` warning: variable does not need to be mutable --> main.rs:27:13 | 27 | let mut arr:Vec <i32> = line.split_whitespace().map(|x| x.parse().unwrap()).collect(); | ----^^^ | | | help: remove this `mut`
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
15ms262kbOK1010
25ms262kbOK1020
35ms262kbOK10
434ms393kbOK1010
547ms393kbOK1010
666ms393kbOK1010
776ms524kbOK1040
890ms524kbOK10
994ms393kbOK10
10147ms786kbOK10
Punctaj total100

Ceva nu functioneaza?