Submission details
Task:LumberUolevi
Sender:aalto25a_003
Submission time:2025-09-03 17:48:25 +0300
Language:Rust (2021)
Status:COMPILE ERROR

Compiler report

error[E0583]: file not found for module `classes`
  --> input/code.rs:13:1
   |
13 | mod classes;
   | ^^^^^^^^^^^^
   |
   = help: to create the module `classes`, create file "input/classes.rs" or "input/classes/mod.rs"
   = note: if there is a `mod classes` elsewhere in the crate already, import it with `use crate::...` instead

error[E0433]: failed to resolve: could not find `c02` in `classes`
  --> input/code.rs:16:14
   |
16 |     classes::c02::task2();
   |              ^^^ could not find `c02` in `classes`

warning: unused import: `std::cmp::min`
 --> input/code.rs:1:5
  |
1 | use std::cmp::min;
  |     ^^^^^^^^^^^^^
  |
  = note: `#[warn(unused_imports)]` on by default

warning: unused imports: `Read`, `self`
 --> input/code.rs:2:15
  |
2 | use std::io::{self, Read};
  |               ^^^^  ^^^^

warning: unused macro definition: `input`
 --> input/code.rs:4:14
  |
4 | macro_rules! input {
  |              ^^^^^
  |
  = note: `#[warn(unused_macros)]` on by default

error: abort...

Code

use std::cmp::min;
use std::io::{self, Read};

macro_rules! input {
    ($it: expr) => {
        $it.next().unwrap().parse().unwrap()
    };
    ($it: expr, $T: ty) => {
        $it.next().unwrap().parse::<$T>().unwrap()
    };
}
//*
mod classes;
fn main() {
    // println!("{}", "-".repeat(20));
    classes::c02::task2();
    // println!("{}", "-".repeat(20));
}
// */

// fn main() {
//     task();
// }
// 
// #[allow(dead_code)]
// fn task() {
// }