/ Vijos /

记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:84:2: error: 'memset' was not declared in this scope
   84 |  memset(ltn, -1, sizeof(ltn));
      |  ^~~~~~
foo.cc:2:1: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
    1 | #include<iostream>
  +++ |+#include <cstring>
    2 | using namespace std;
foo.cc: In function 'bool bitcheck(int, int)':
foo.cc:33:1: warning: control reaches end of non-void function [-Wreturn-type]
   33 | }
      | ^
foo.cc: In function 'void search(int, int)':
foo.cc:74:9: warning: ignoring return value of 'int system(const char*)', declared with attribute warn_unused_result [-Wunused-result]
   74 |   system("pause");
      |   ~~~~~~^~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:101:8: warning: ignoring return value of 'int system(const char*)', declared with attribute warn_unused_result [-Wunused-result]
  101 |  system("pause");
      |  ~~~~~~^~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1099 虫食算
语言
C++
递交时间
2022-03-21 03:00:29
评测时间
2022-03-21 03:01:07
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes