/ new_bzoj /

记录详情

Compile Error

foo.cc:11:1: error: 'Copy' does not name a type
   11 | Copy
      | ^~~~
foo.cc:44:5: error: redefinition of 'int main()'
   44 | int main()
      |     ^~~~
foo.cc:5:5: note: 'int main()' previously defined here
    5 | int main(){
      |     ^~~~
foo.cc:55:1: error: 'Copy' does not name a type
   55 | Copy
      | ^~~~
In file included from foo.cc:58:
/usr/include/c++/9/cstring:77:11: error: '::memchr' has not been declared
   77 |   using ::memchr;
      |           ^~~~~~
/usr/include/c++/9/cstring:78:11: error: '::memcmp' has not been declared
   78 |   using ::memcmp;
      |           ^~~~~~
/usr/include/c++/9/cstring:79:11: error: '::memcpy' has not been declared
   79 |   using ::memcpy;
      |           ^~~~~~
/usr/include/c++/9/cstring:80:11: error: '::memmove' has not been declared
   80 |   using ::memmove;
      |           ^~~~~~~
/usr/include/c++/9/cstring:81:11: error: '::memset' has not been declared
   81 |   using ::memset;
      |           ^~~~~~
/usr/include/c++/9/cstring:82:11: error: '::strcat' has not been declared
   82 |   using ::strcat;
      |           ^~~~~~
/usr/include/c++/9/cstring:83:11: error: '::strcmp' has not been declared
   83 |   using ::strcmp;
      |           ^~~~~~
/usr/include/c++/9/cstring:84:11: error: '::strcoll' has not been declared
   84 |   using ::strcoll;
      |           ^~~~~~~
/usr/include/c++/9/cstring:85:11: error: '::strcpy' has not been declared
   85 |   using ::strcpy;
      |           ^~~~~~
/usr/include/c++/9/cstring:86:11: error: '::strcspn' has not been declared
   86 |   using ::strcspn;
      |           ^~~~~~~
/usr/include/c++/9/cstring:87:11: error: '::strerror' has not been declared
   87 |   using ::strerror;
      |           ^~~~~~~~
/usr/include/c++/9/cstring:88:11: error: '::strlen' has not been declared
   88 |   using ::strlen;
      |           ^~~~~~
/usr/include/c++/9/cstring:89:11: error: '::strncat' has not been declared
   89 |   using ::strncat;
      |           ^~~~~~~
/usr/include/c++/9/cstring:90:11: error: '::strncmp' has not been declared
   90 |   using ::strncmp;
      |           ^~~~~~~
/usr/include/c++/9/cstring:91:11: error: '::strncpy' has not been declared
   91 |   using ::strncpy;
      |           ^~~~~~~
/usr/include/c++/9/cstring:92:11: error: '::strspn' has not been declared
   92 |   using ::strspn;
      |           ^~~~~~
/usr/include/c++/9/cstring:93:11: error: '::strtok' has not been declared
   93 |   using ::strtok;
      |           ^~~~~~
/usr/include/c++/9/cstring:94:11: error: '::strxfrm' has not been declared
   94 |   using ::strxfrm;
      |           ^~~~~~~
/usr/include/c++/9/cstring:95:11: error: '::strchr' has not been declared
   95 |   using ::strchr;
      |           ^~~~~~
/usr/include/c++/9/cstring:96:11: error: '::strpbrk' has not been declared
   96 |   using ::strpbrk;
      |           ^~~~~~~
/usr/include/c++/9/cstring:97:11: error: '::strrchr' has not been declared
   97 |   using ::strrchr;
      |           ^~~~~~~
/usr/include/c++/9/cstring:98:11: error: '::strstr' has not been declared
   98 |   using ::strstr;
      |           ^~~~~~
foo.cc:62:5: error: redefinition of 'int n'
   62 | int n;
      |     ^
foo.cc:18:5: note: 'int n' previously declared here
   18 | int n;
      |     ^
foo.cc: In member function 'NUM NUM::operator=(int)':
foo.cc:66:9: error: 'memset' was not declared in this scope
   66 |         memset(s, 0, sizeof(s));
      |         ^~~~~~
foo.cc:59:1: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
   58 | #include<cstring>
  +++ |+#include <cstring>
   59 | using namespace std;
foo.cc: In member function 'NUM NUM::operator+(NUM)':
foo.cc:73:9: error: 'memset' was not declared in this scope
   73 |         memset(y.s, 0, sizeof(y.s));
      |         ^~~~~~
foo.cc:73:9: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
foo.cc: At global scope:
foo.cc:96:5: error: redefinition of 'int main()'
   96 | int main()
      |     ^~~~
foo.cc:5:5: note: 'int main()' previously defined here
    5 | int main(){
      |     ^~~~
foo.cc: In function 'int main()':
foo.cc:48:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   48 |     scanf("%d",&n);
      |     ~~~~~^~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:98:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   98 |     scanf("%d", &n);
      |     ~~~~~^~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
轮状病毒
语言
C++
递交时间
2022-07-30 18:08:19
评测时间
2022-07-30 18:08:19
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes