QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#869949#9685. nim 游戏minstdfxCompile Error//C++205.8kb2025-01-25 14:02:402025-01-25 14:02:46

Details

answer.code:38:19: error: ‘int index [63][100009]’ redeclared as different kind of entity
   38 | int index[63][maxn];
      |                   ^
In file included from /usr/include/string.h:462,
                 from /usr/include/c++/14/cstring:43,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:121,
                 from answer.code:1:
/usr/include/strings.h:61:1: note: previous declaration ‘const char* index(const char*, int)’
   61 | index (const char *__s, int __c) __THROW
      | ^~~~~
answer.code: In function ‘ll dfs1(ll, int, int)’:
answer.code:48:24: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
   48 |             int p=index[bw][i];
      |                        ^
answer.code:65:24: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
   65 |             int p=index[bw][i];
      |                        ^
answer.code:69:28: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
   69 |                 int q=index[bw][j];
      |                            ^
answer.code: In function ‘int dfs2(ll, int, int, ll)’:
answer.code:99:24: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
   99 |             int p=index[bw][i];
      |                        ^
answer.code:125:20: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
  125 |         int p=index[bw][i];
      |                    ^
answer.code:129:24: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
  129 |             int q=index[bw][j];
      |                        ^
answer.code: In function ‘void solve()’:
answer.code:171:40: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
  171 |         for(int bw=0;bw<=60;++bw) index[bw][i]=i;
      |                                        ^
answer.code:179:19: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
  179 |         sort(index[bw]+1,index[bw]+n+1,[&](int ai,int bi) {
      |                   ^
answer.code:179:31: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
  179 |         sort(index[bw]+1,index[bw]+n+1,[&](int ai,int bi) {
      |                               ^