Advertisement
Guest User

Untitled

a guest
Oct 15th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. use std::io;
  2. use std::io::BufRead;
  3. fn main() {
  4. let mut buf = String::new();
  5. let r = io::stdin().lock();
  6. // let mut r = r.lock();
  7. r.read_line(&mut buf).unwrap();//no method named `read_line` found for type `std::io::StdinLock<'_>` in the current scope
  8. let mut x:i32 = buf.trim().parse().unwrap();
  9. print!("{}", x*x*x );
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement