QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#64610#1806. Character GridGuanYunchangCompile Error//C++204.0kb2022-11-25 01:36:042022-11-25 01:36:06

詳細信息

answer.code:34:12: error: ‘std::set<std::__cxx11::basic_string<char> > dup’ redeclared as different kind of entity
   34 | set<string>dup ;
      |            ^~~
In file included from /usr/include/c++/11/bits/atomic_wait.h:44,
                 from /usr/include/c++/11/bits/atomic_base.h:41,
                 from /usr/include/c++/11/bits/shared_ptr_atomic.h:33,
                 from /usr/include/c++/11/memory:78,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:82,
                 from answer.code:1:
/usr/include/unistd.h:531:12: note: previous declaration ‘int dup(int)’
  531 | extern int dup (int __fd) __THROW __wur;
      |            ^~~
answer.code: In function ‘bool col(long long int, long long int, long long int)’:
answer.code:48:17: error: request for member ‘insert’ in ‘dup’, which is of non-class type ‘int(int) noexcept’
   48 |             dup.insert(r) ;
      |                 ^~~~~~
answer.code: In function ‘bool row(long long int, long long int, long long int)’:
answer.code:66:32: error: request for member ‘count’ in ‘dup’, which is of non-class type ‘int(int) noexcept’
   66 |         if((e.count(rw) or dup.count(rw)) and mode==0)
      |                                ^~~~~
answer.code: In function ‘void build(long long int)’:
answer.code:86:25: error: request for member ‘clear’ in ‘dup’, which is of non-class type ‘int(int) noexcept’
   86 |                     dup.clear() ;
      |                         ^~~~~
answer.code:104:25: error: request for member ‘clear’ in ‘dup’, which is of non-class type ‘int(int) noexcept’
  104 |                     dup.clear() ;
      |                         ^~~~~
answer.code:124:25: error: request for member ‘clear’ in ‘dup’, which is of non-class type ‘int(int) noexcept’
  124 |                     dup.clear() ;
      |                         ^~~~~
answer.code:142:25: error: request for member ‘clear’ in ‘dup’, which is of non-class type ‘int(int) noexcept’
  142 |                     dup.clear() ;
      |                         ^~~~~