QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#530668#9221. Missing Boundariesucup-team4755#Compile Error//C++142.3kb2024-08-24 16:53:052024-08-24 16:53:06

Details

answer.code:2:13: error: ‘ll’ does not name a type
    2 | #define int ll
      |             ^~
answer.code:4:8: note: in expansion of macro ‘int’
    4 | inline int read() {
      |        ^~~
answer.code:17:6: error: variable or field ‘write’ declared void
   17 | void write(int x) {
      |      ^~~~~
answer.code:2:13: error: ‘ll’ was not declared in this scope
    2 | #define int ll
      |             ^~
answer.code:17:12: note: in expansion of macro ‘int’
   17 | void write(int x) {
      |            ^~~
answer.code:2:13: error: ‘ll’ does not name a type
    2 | #define int ll
      |             ^~
answer.code:25:1: note: in expansion of macro ‘int’
   25 | int t,n,L,flag,cnt,tot;
      | ^~~
answer.code:2:13: error: ‘ll’ does not name a type
    2 | #define int ll
      |             ^~
answer.code:26:1: note: in expansion of macro ‘int’
   26 | int buc[400005];
      | ^~~
answer.code:2:13: error: ‘ll’ does not name a type
    2 | #define int ll
      |             ^~
answer.code:28:9: note: in expansion of macro ‘int’
   28 |         int x,y;
      |         ^~~
answer.code:2:13: error: ‘ll’ was not declared in this scope
    2 | #define int ll
      |             ^~
answer.code:30:5: note: in expansion of macro ‘int’
   30 | map<int,int> mp;
      |     ^~~
answer.code:2:13: error: ‘ll’ was not declared in this scope
    2 | #define int ll
      |             ^~
answer.code:30:9: note: in expansion of macro ‘int’
   30 | map<int,int> mp;
      |         ^~~
answer.code:30:12: error: template argument 1 is invalid
   30 | map<int,int> mp;
      |            ^
answer.code:30:12: error: template argument 2 is invalid
answer.code:30:12: error: template argument 3 is invalid
answer.code:30:12: error: template argument 4 is invalid
answer.code: In function ‘void solve()’:
answer.code:32:12: error: request for member ‘clear’ in ‘mp’, which is of non-class type ‘int’
   32 |         mp.clear();
      |            ^~~~~
answer.code:33:9: error: ‘tot’ was not declared in this scope
   33 |         tot = cnt = flag = 0;
      |         ^~~
answer.code:33:15: error: ‘cnt’ was not declared in this scope; did you mean ‘int’?
   33 |         tot = cnt = flag = 0;
      |               ^~~
      |               int
answer.code:33:21: error: ‘flag’ was not declared in this scope
   33 |         tot = cnt = flag = 0;
      |                     ^~~~
answer.code:34:9: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
   34 |         n = read();
      |         ^
      |         yn
answer.code:34:13: error: ‘read’ was not declared in this scope; did you mean ‘fread’?
   34 |         n = read();
      |             ^~~~
      |             fread
answer.code:35:9: error: ‘L’ was not declared in this scope
   35 |         L = read();
      |         ^
answer.code:2:13: error: ‘ll’ was not declared in this scope
    2 | #define int ll
      |             ^~
answer.code:40:9: note: in expansion of macro ‘int’
   40 |         int sum = L,rest = 0,ct = 0;
      |         ^~~
answer.code:41:18: error: expected ‘;’ before ‘i’
   41 |         for (int i = 1,x,y; i <= n; i++) {
      |                  ^
answer.code:41:29: error: ‘i’ was not declared in this scope
   41 |         for (int i = 1,x,y; i <= n; i++) {
      |                             ^
answer.code:42:17: error: ‘x’ was not declared in this scope
   42 |                 x = read();
      |                 ^
answer.code:43:17: error: ‘y’ was not declared in this scope; did you mean ‘yn’?
   43 |                 y = read();
      |                 ^
      |                 yn
answer.code:51:33: error: ‘buc’ was not declared in this scope
   51 |                                 buc[++tot] = x;
      |                                 ^~~
answer.code:53:25: error: ‘buc’ was not declared in this scope
   53 |                         buc[++tot] = y;
      |                         ^~~
answer.code:54:25: error: ‘sum’ was not declared in this scope
   54 |                         sum--;
      |                         ^~~
answer.code:64:25: error: ‘buc’ was not declared in this scope
   64 |                         buc[++tot] = x;
      |                         ^~~
answer.code:72:25: error: ‘buc’ was not declared in this scope
   72 |                         buc[++tot] = y;
      |                         ^~~
answer.code:74:63: error: ‘sum’ was not declared in this scope
   74 |                 if (x!=-1 && y!=-1) rel[++cnt] = (node) {x,y},sum -= (y-x+1);
      |                                                               ^~~
answer.code:75:42: error: ‘sum’ was not declared in this scope
   75 |                 else if (x!=-1 || y!=-1) sum--;
      |                                          ^~~
answer.code:76:22: error: ‘ct’ was not declared in this scope
   76 |                 else ct++;
      |                      ^~
answer.code:78:9: error: ‘buc’ was not declared in this scope
   78 |         buc[++tot] = 0;
      |         ^~~
answer.code:80:11: er...