QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#458897#8089. FlaaffynyctivoeCompile Error//C++178.4kb2024-06-29 20:29:332024-06-29 20:29:34

Details

answer.code:174:2: error: stray ‘#’ in program
  174 | }#pragma GCC optimize("O2")
      |  ^
answer.code:174:3: error: ‘pragma’ does not name a type; did you mean ‘_Pragma’?
  174 | }#pragma GCC optimize("O2")
      |   ^~~~~~
      |   _Pragma
answer.code:180:11: error: redefinition of ‘const int MAXN’
  180 | const int MAXN = 1e5 + 5, MAXD = 50, S = 161060;
      |           ^~~~
answer.code:7:11: note: ‘const int MAXN’ previously defined here
    7 | const int MAXN = 1e5 + 5, MAXD = 50, S = 161060;
      |           ^~~~
answer.code:180:27: error: redefinition of ‘const int MAXD’
  180 | const int MAXN = 1e5 + 5, MAXD = 50, S = 161060;
      |                           ^~~~
answer.code:7:27: note: ‘const int MAXD’ previously defined here
    7 | const int MAXN = 1e5 + 5, MAXD = 50, S = 161060;
      |                           ^~~~
answer.code:180:38: error: redefinition of ‘const int S’
  180 | const int MAXN = 1e5 + 5, MAXD = 50, S = 161060;
      |                                      ^
answer.code:7:38: note: ‘const int S’ previously defined here
    7 | const int MAXN = 1e5 + 5, MAXD = 50, S = 161060;
      |                                      ^
answer.code:181:11: error: redefinition of ‘const int N’
  181 | const int N = 99999, D = 45;
      |           ^
answer.code:8:11: note: ‘const int N’ previously defined here
    8 | const int N = 99999, D = 45;
      |           ^
answer.code:181:22: error: redefinition of ‘const int D’
  181 | const int N = 99999, D = 45;
      |                      ^
answer.code:8:22: note: ‘const int D’ previously defined here
    8 | const int N = 99999, D = 45;
      |                      ^
answer.code:182:11: error: redefinition of ‘const int inf’
  182 | const int inf  = 1e9;
      |           ^~~
answer.code:9:11: note: ‘const int inf’ previously defined here
    9 | const int inf  = 1e9;
      |           ^~~
answer.code:184:5: error: redefinition of ‘int dg [1000][1000]’
  184 | int dg[1000][1000], dl[1000][1000];
      |     ^~
answer.code:11:5: note: ‘int dg [1000][1000]’ previously declared here
   11 | int dg[1000][1000], dl[1000][1000];
      |     ^~
answer.code:184:21: error: redefinition of ‘int dl [1000][1000]’
  184 | int dg[1000][1000], dl[1000][1000];
      |                     ^~
answer.code:11:21: note: ‘int dl [1000][1000]’ previously declared here
   11 | int dg[1000][1000], dl[1000][1000];
      |                     ^~
answer.code:186:12: error: redefinition of ‘int trans(int, int, int)’
  186 | inline int trans(int x, int mask, int ret = 0) {
      |            ^~~~~
answer.code:13:12: note: ‘int trans(int, int, int)’ previously defined here
   13 | inline int trans(int x, int mask, int ret = 0) {
      |            ^~~~~
answer.code:197:12: error: redefinition of ‘int dist(int, int, int)’
  197 | inline int dist(int a, int b, int ans = 0) {
      |            ^~~~
answer.code:24:12: note: ‘int dist(int, int, int)’ previously defined here
   24 | inline int dist(int a, int b, int ans = 0) {
      |            ^~~~
answer.code:208:13: error: redefinition of ‘void solve(int, int)’
  208 | inline void solve(int l, int r) {
      |             ^~~~~
answer.code:35:13: note: ‘void solve(int, int)’ previously defined here
   35 | inline void solve(int l, int r) {
      |             ^~~~~
answer.code:222:5: error: redefinition of ‘int rangel [50][100005]’
  222 | int rangel[MAXD][MAXN], ranger[MAXD][MAXN];
      |     ^~~~~~
answer.code:49:5: note: ‘int rangel [50][100005]’ previously declared here
   49 | int rangel[MAXD][MAXN], ranger[MAXD][MAXN];
      |     ^~~~~~
answer.code:222:25: error: redefinition of ‘int ranger [50][100005]’
  222 | int rangel[MAXD][MAXN], ranger[MAXD][MAXN];
      |                         ^~~~~~
answer.code:49:25: note: ‘int ranger [50][100005]’ previously declared here
   49 | int rangel[MAXD][MAXN], ranger[MAXD][MAXN];
      |                         ^~~~~~
answer.code:223:30: error: redefinition of ‘std::vector<std::queue<std::array<int, 3> > > ql’
  223 | vector<queue<array<int, 3>>> ql(N + 2), qr(N + 2);
      |                              ^~
answer.code:50:30: note: ‘std::vector<std::queue<std::array<int, 3> > > ql’ previously declared here
   50 | vector<queue<array<int, 3>>> ql(N + 2), qr(N + 2);
      |                              ^~
answer.code:223:41: error: redefinition of ‘std::vector<std::queue<std::array<int, 3> > > qr’
  223 | vector<queue<array<int, 3>>> ql(N + 2), qr(N + 2);
      |                                         ^~
answer.code:50:41: note: ‘std::vector<std::queue<std::array<int, 3> > > qr’ previously declared here
   50 | vector<queue<array<int, 3>>> ql(N + 2), qr(N + 2);
      |                                         ^~
answer.code:224:13: error: redefinition of ‘std::vector<int> bb [6]’
  224 | vector<int> bb[6];
      |             ^~
answer.code:51:13: note: ‘std::vector<int> bb [6]’ previously declared here
   51 | vector<int> bb[6];
      |             ^~
answer.code:226:5: erro...