Skip to content

LambdaIITH/ftb_pick-a-day

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pick a Day

Kartheek is organizing Fix The Bug this year, and he needs to pick a day for the event. Given his extreme indecisiveness, he instead decides to generate a random weekday to hold the event, using the rand and time crates in Rust. But he's stuck with a compiler error. The compiler is telling him that the Standard trait is not implemented, even though it clearly is. Can you help him fix the bug?

Note: The goal here is to figure out why the compiler is complaining, and fix it. Don't completely change the code to use a different method.

Getting Started

This repository contains a Rust project, so make sure you have rustc and cargo installed on your machine. If you don't, you can install them using rustup, the official Rust installer.

  1. Clone this repository and cd into it.
  2. Run the program using cargo run.

Expected Output

How about we conduct Fix The Bug on Tuesday?

(Tuesday is just an example, the output should be a random day of the week.)

Current Output

No output, compiler error :(

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages