library-rs

This documentation is automatically generated by online-judge-tools/verification-helper

View the Project on GitHub naoya675/library-rs

:warning: chmax
(macro/chmax/src/lib.rs)

Description

Code

//! https://qiita.com/maguro_tuna/items/fab200fdc1efde1612e7

macro_rules! chmax {
    ($base:expr, $($ex:expr),+ $(,)*) => {
        let max = max!($($ex),+);
        if $base < max {
            $base = max;
            true
        } else {
            false
        }
    };
}

macro_rules! max {
    ($exa:expr $(,)*) => {
        $exa
    };
    ($exa:expr, $exb:expr $(,)*) => {
        std::cmp::max($exa, $exb)
    };
    ($exa:expr, $($ex:expr),+ $(,)*) => {
        std::cmp::max($exa, max!($($ex),+))
    };
}
Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.11.12/x64/lib/python3.11/site-packages/onlinejudge_verify/documentation/build.py", line 71, in _render_source_code_stat
    bundled_code = language.bundle(stat.path, basedir=basedir, options={'include_paths': [basedir]}).decode()
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.11.12/x64/lib/python3.11/site-packages/onlinejudge_verify/languages/rust.py", line 288, in bundle
    raise NotImplementedError
NotImplementedError
Back to top page