/ Vijos /

记录详情

Compile Error

foo.cc: In function 'int dfs(int, int, result)':
foo.cc:24:3: error: 'itoa' was not declared in this scope
   24 |   itoa(now_state, str, 10);
      |   ^~~~
foo.cc:26:16: error: 'strlen' was not declared in this scope
   26 |   for (int j = strlen(str) - 1; j >= 0; j--) {
      |                ^~~~~~
foo.cc:7:1: note: 'strlen' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
    6 | #include <stdlib.h>
  +++ |+#include <cstring>
    7 | using namespace std;
foo.cc:22:7: warning: unused variable 'tmp' [-Wunused-variable]
   22 |   int tmp = now_state;
      |       ^~~
foo.cc: In function 'int main()':
foo.cc:51:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   51 |   scanf("%d", &tmp);
      |   ~~~~~^~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1016 北京2008的挂钟
语言
C++
递交时间
2021-12-09 16:55:42
评测时间
2021-12-09 16:55:42
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes