/ Vijos /

记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:25:9: error: 'memset' was not declared in this scope
   25 |         memset(treevalue,0,sizeof(treevalue));
      |         ^~~~~~
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:40:17: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
   40 |                 for(p=i+1;p<j;++p)
      |                 ^~~
foo.cc:45:21: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
   45 |                     if(treevalue[i][j]<(treevalue[i][j-1]+value[j])){
      |                     ^~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1100 加分二叉树
语言
C++
递交时间
2023-05-13 23:43:36
评测时间
2023-05-13 23:43:36
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes