You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let a:i32 = stdin.lock().lines().next().unwrap().unwrap().trim().parse().unwrap();
As i think, Rust needs easier way to do this. E. g. like:
let a = stdin.read::<i32>().ok().expect("Write a number!");let(b, c, d) = stdin.read::<(i32,f64,bool)>.ok().expect("Please, write integer, float and boolean!");