QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#328654#7998. 矩阵Kevin090228Compile Error//C++233.7kb2024-02-15 22:49:512024-02-15 22:49:52

Details

answer.code: In function ‘void span(int, long long int*)’:
answer.code:110:9: error: reference to ‘span’ is ambiguous
  110 |         span(ls[x],gr);
      |         ^~~~
In file included from /usr/include/c++/13/ranges:45,
                 from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:89,
                 from answer.code:2:
/usr/include/c++/13/span:56:11: note: candidates are: ‘template<class _Type, long unsigned int _Extent> class std::span’
   56 |     class span;
      |           ^~~~
answer.code:106:6: note:                 ‘void span(int, long long int*)’
  106 | void span(int x,ll *gr)
      |      ^~~~
answer.code:112:9: error: reference to ‘span’ is ambiguous
  112 |         span(rs[x],gr+siz[ls[x]]+1);
      |         ^~~~
/usr/include/c++/13/span:56:11: note: candidates are: ‘template<class _Type, long unsigned int _Extent> class std::span’
   56 |     class span;
      |           ^~~~
answer.code:106:6: note:                 ‘void span(int, long long int*)’
  106 | void span(int x,ll *gr)
      |      ^~~~
answer.code: In function ‘int main()’:
answer.code:199:17: error: reference to ‘span’ is ambiguous
  199 |                 span(row[i],grid[i]+1);
      |                 ^~~~
/usr/include/c++/13/span:56:11: note: candidates are: ‘template<class _Type, long unsigned int _Extent> class std::span’
   56 |     class span;
      |           ^~~~
answer.code:106:6: note:                 ‘void span(int, long long int*)’
  106 | void span(int x,ll *gr)
      |      ^~~~