Submission #244

rip Platinum III Deforestation C++20 (GCC) judged by riseoj-judge-1

Compile Error
s
Compiler output
/box/main.cpp: In member function ‘bool T::operator<(const T&) const’:
/box/main.cpp:11:16: error: ‘priority’ was not declared in this scope
   11 |         return priority.cut > other.cut;
      |                ^~~~~~~~
/box/main.cpp: In function ‘int main()’:
/box/main.cpp:47:13: error: ‘dt’ was not declared in this scope; did you mean ‘tt’?
   47 |             dt[i] = dt[i - 1] + forest[i];
      |             ^~
      |             tt
/box/main.cpp:52:27: error: ‘dt’ was not declared in this scope; did you mean ‘tt’?
   52 |             laws[i].cut = dt[laws[i].r] - dt[laws[i].l - 1] - laws[i].amt;
      |                           ^~
      |                           tt
/box/main.cpp:58:17: error: expected primary-expression before ‘)’ token
   58 |             if ()
      |                 ^
/box/main.cpp:59:9: error: expected primary-expression before ‘}’ token
   59 |         }
      |         ^
Test cases

Waiting for the judge

Time per case
Memory per case
Case details
CaseBatchVerdictTime MemoryPointsFeedback
Test case

Source is locked. Solve the problem to read other people's code for it.

Open the problem