/ new_bzoj /

记录详情

Compile Error

/in/foo.cc:44:1: error: 'Copy' does not name a type
   44 | Copy
      | ^~~~
In file included from /in/foo.cc:47:
/usr/include/c++/12/cstring:77:11: error: 'memchr' has not been declared in '::'
   77 |   using ::memchr;
      |           ^~~~~~
/usr/include/c++/12/cstring:78:11: error: 'memcmp' has not been declared in '::'
   78 |   using ::memcmp;
      |           ^~~~~~
/usr/include/c++/12/cstring:79:11: error: 'memcpy' has not been declared in '::'
   79 |   using ::memcpy;
      |           ^~~~~~
/usr/include/c++/12/cstring:80:11: error: 'memmove' has not been declared in '::'
   80 |   using ::memmove;
      |           ^~~~~~~
/usr/include/c++/12/cstring:81:11: error: 'memset' has not been declared in '::'
   81 |   using ::memset;
      |           ^~~~~~
/usr/include/c++/12/cstring:82:11: error: 'strcat' has not been declared in '::'
   82 |   using ::strcat;
      |           ^~~~~~
/usr/include/c++/12/cstring:83:11: error: 'strcmp' has not been declared in '::'
   83 |   using ::strcmp;
      |           ^~~~~~
/usr/include/c++/12/cstring:84:11: error: 'strcoll' has not been declared in '::'
   84 |   using ::strcoll;
      |           ^~~~~~~
/usr/include/c++/12/cstring:85:11: error: 'strcpy' has not been declared in '::'
   85 |   using ::strcpy;
      |           ^~~~~~
/usr/include/c++/12/cstring:86:11: error: 'strcspn' has not been declared in '::'
   86 |   using ::strcspn;
      |           ^~~~~~~
/usr/include/c++/12/cstring:87:11: error: 'strerror' has not been declared in '::'
   87 |   using ::strerror;
      |           ^~~~~~~~
/usr/include/c++/12/cstring:88:11: error: 'strlen' has not been declared in '::'
   88 |   using ::strlen;
      |           ^~~~~~
/usr/include/c++/12/cstring:89:11: error: 'strncat' has not been declared in '::'
   89 |   using ::strncat;
      |           ^~~~~~~
/usr/include/c++/12/cstring:90:11: error: 'strncmp' has not been declared in '::'
   90 |   using ::strncmp;
      |           ^~~~~~~
/usr/include/c++/12/cstring:91:11: error: 'strncpy' has not been declared in '::'
   91 |   using ::strncpy;
      |           ^~~~~~~
/usr/include/c++/12/cstring:92:11: error: 'strspn' has not been declared in '::'
   92 |   using ::strspn;
      |           ^~~~~~
/usr/include/c++/12/cstring:93:11: error: 'strtok' has not been declared in '::'
   93 |   using ::strtok;
      |           ^~~~~~
/usr/include/c++/12/cstring:94:11: error: 'strxfrm' has not been declared in '::'
   94 |   using ::strxfrm;
      |           ^~~~~~~
/usr/include/c++/12/cstring:95:11: error: 'strchr' has not been declared in '::'
   95 |   using ::strchr;
      |           ^~~~~~
/usr/include/c++/12/cstring:96:11: error: 'strpbrk' has not been declared in '::'
   96 |   using ::strpbrk;
      |           ^~~~~~~
/usr/include/c++/12/cstring:97:11: error: 'strrchr' has not been declared in '::'
   97 |   using ::strrchr;
      |           ^~~~~~~
/usr/include/c++/12/cstring:98:11: error: 'strstr' has not been declared in '::'
   98 |   using ::strstr;
      |           ^~~~~~
/in/foo.cc:51:5: error: redefinition of 'int n'
   51 | int n;
      |     ^
/in/foo.cc:7:5: note: 'int n' previously declared here
    7 | int n;
      |     ^
/in/foo.cc: In member function 'NUM NUM::operator=(int)':
/in/foo.cc:55:9: error: 'memset' was not declared in this scope
   55 |         memset(s, 0, sizeof(s));
      |         ^~~~~~
/in/foo.cc:48:1: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
   47 | #include<cstring>
  +++ |+#include <cstring>
   48 | using namespace std;
/in/foo.cc: In member function 'NUM NUM::operator+(NUM)':
/in/foo.cc:62:9: error: 'memset' was not declared in this scope
   62 |         memset(y.s, 0, sizeof(y.s));
      |         ^~~~~~
/in/foo.cc:62:9: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
/in/foo.cc: At global scope:
/in/foo.cc:85:5: error: redefinition of 'int main()'
   85 | int main()
      |     ^~~~
/in/foo.cc:33:5: note: 'int main()' previously defined here
   33 | int main()
      |     ^~~~

信息

递交者
类型
递交
题目
轮状病毒
语言
C++
递交时间
2026-02-05 21:34:34
评测时间
2026-02-05 21:34:34
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes