QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#458346#8837. Increasing Incomeucup-team3827#Compile Error//C++2321.1kb2024-06-29 16:46:502024-06-29 16:46:52

Details

answer.code:330:5: error: stray ‘@’ in program
  330 |     @Override
      |     ^
answer.code:1:1: error: ‘import’ does not name a type
    1 | import java.io.BufferedInputStream;
      | ^~~~~~
answer.code:1:1: note: C++20 ‘import’ only available with ‘-fmodules-ts’, which is not yet enabled with ‘-std=c++20’
answer.code:2:1: error: ‘import’ does not name a type
    2 | import java.io.IOException;
      | ^~~~~~
answer.code:2:1: note: C++20 ‘import’ only available with ‘-fmodules-ts’, which is not yet enabled with ‘-std=c++20’
answer.code:3:1: error: ‘import’ does not name a type
    3 | import java.io.PrintWriter;
      | ^~~~~~
answer.code:3:1: note: C++20 ‘import’ only available with ‘-fmodules-ts’, which is not yet enabled with ‘-std=c++20’
answer.code:4:1: error: ‘import’ does not name a type
    4 | import java.util.*;
      | ^~~~~~
answer.code:4:1: note: C++20 ‘import’ only available with ‘-fmodules-ts’, which is not yet enabled with ‘-std=c++20’
answer.code:5:1: error: ‘import’ does not name a type
    5 | import java.util.function.*;
      | ^~~~~~
answer.code:5:1: note: C++20 ‘import’ only available with ‘-fmodules-ts’, which is not yet enabled with ‘-std=c++20’
answer.code:6:1: error: ‘import’ does not name a type
    6 | import java.util.stream.Collectors;
      | ^~~~~~
answer.code:6:1: note: C++20 ‘import’ only available with ‘-fmodules-ts’, which is not yet enabled with ‘-std=c++20’
answer.code:7:1: error: ‘import’ does not name a type
    7 | import java.util.stream.IntStream;
      | ^~~~~~
answer.code:7:1: note: C++20 ‘import’ only available with ‘-fmodules-ts’, which is not yet enabled with ‘-std=c++20’
answer.code:9:1: error: expected unqualified-id before ‘public’
    9 | public class Main {
      | ^~~~~~
answer.code:127:7: error: ‘LazySegmentTree’ is not a class template
  127 | class LazySegmentTree<T, U> {
      |       ^~~~~~~~~~~~~~~
answer.code:127:23: error: ‘T’ was not declared in this scope
  127 | class LazySegmentTree<T, U> {
      |                       ^
answer.code:127:26: error: ‘U’ was not declared in this scope
  127 | class LazySegmentTree<T, U> {
      |                          ^
answer.code:128:12: error: expected ‘:’ before ‘boolean’
  128 |     private boolean isBuilt;
      |            ^~~~~~~~
      |            :
answer.code:128:13: error: ‘boolean’ does not name a type; did you mean ‘bool’?
  128 |     private boolean isBuilt;
      |             ^~~~~~~
      |             bool
answer.code:129:12: error: expected ‘:’ before ‘List’
  129 |     private List<T> node;
      |            ^~~~~
      |            :
answer.code:129:18: error: ‘T’ was not declared in this scope
  129 |     private List<T> node;
      |                  ^
answer.code:129:18: error: ‘T’ was not declared in this scope
answer.code:129:18: error: ‘T’ was not declared in this scope
answer.code:129:18: error: ‘T’ was not declared in this scope
answer.code:129:18: error: ‘T’ was not declared in this scope
answer.code:129:18: error: ‘T’ was not declared in this scope
answer.code:129:18: error: ‘T’ was not declared in this scope
answer.code:129:18: error: ‘T’ was not declared in this scope
answer.code:129:18: error: ‘T’ was not declared in this scope
answer.code:129:18: error: ‘T’ was not declared in this scope
answer.code:129:13: error: ‘List’ does not name a type
  129 |     private List<T> node;
      |             ^~~~
answer.code:130:12: error: expected ‘:’ before ‘List’
  130 |     private List<U> lazy;
      |            ^~~~~
      |            :
answer.code:130:18: error: ‘U’ was not declared in this scope
  130 |     private List<U> lazy;
      |                  ^
answer.code:130:18: error: ‘U’ was not declared in this scope
answer.code:130:18: error: ‘U’ was not declared in this scope
answer.code:130:18: error: ‘U’ was not declared in this scope
answer.code:130:18: error: ‘U’ was not declared in this scope
answer.code:130:18: error: ‘U’ was not declared in this scope
answer.code:130:18: error: ‘U’ was not declared in this scope
answer.code:130:18: error: ‘U’ was not declared in this scope
answer.code:130:18: error: ‘U’ was not declared in this scope
answer.code:130:18: error: ‘U’ was not declared in this scope
answer.code:130:13: error: ‘List’ does not name a type
  130 |     private List<U> lazy;
      |             ^~~~
answer.code:131:12: error: expected ‘:’ before ‘int’
  131 |     private int n;
      |            ^~~~
      |            :
answer.code:132:12: error: expected ‘:’ before ‘int’
  132 |     private int m;
      |            ^~~~
      |            :
answer.code:133:12: error: expected ‘:’ before ‘int’
  133 |     private int height;
      |            ^~~~
      |            :
answer.code:134:12: error: expected ‘:’ before ‘final’
  134 |     private final Monoid<T> monoid;
      |            ^~~~~~
      |            :
answer.code:134:13: error: ‘final’ does not name a type
  134 |     private final Monoid<T> monoid;
      |             ^~~~~
answer.code:13...