Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- use std::io;
- use std::io::BufRead;
- fn main() {
- let mut buf = String::new();
- let r = io::stdin().lock();
- // let mut r = r.lock();
- r.read_line(&mut buf).unwrap();//no method named `read_line` found for type `std::io::StdinLock<'_>` in the current scope
- let mut x:i32 = buf.trim().parse().unwrap();
- print!("{}", x*x*x );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement