Compile Error

foo.cc: In function 'int main()':
foo.cc:11:3: error: 'maxn' was not declared in this scope; did you mean 'main'?
   11 |   maxn=max(maxn,xx)
      |   ^~~~
      |   main
foo.cc:13:8: error: 'maxn' was not declared in this scope; did you mean 'main'?
   13 |  cout<<maxn;
      |        ^~~~
      |        main
foo.cc:7:6: warning: unused variable 'sum' [-Wunused-variable]
    7 |  int sum=0;
      |      ^~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1101 数组元素最大值
语言
C++
递交时间
2022-07-19 17:17:56
评测时间
2022-07-19 17:17:56
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes