Submission #244
rip Deforestation C++20 (GCC) judged by riseoj-judge-1
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
| Case | Batch | Verdict | Time | Memory | Points | Feedback |
|---|---|---|---|---|---|---|
Test case
Input (first 64 KB)
Expected output (first 64 KB)
Your output first difference on line matches
Not recorded for this run. Programs judged before this feature, and cases that never ran, have no captured output.
Source is locked. Solve the problem to read other people's code for it.
Open the problem