Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:13:35: warning: variable 'maxn' set but not used [-Wunused-but-set-variable]
   13 |                         int cnt=0,maxn=0,sum=0;
      |                                   ^~~~
/in/foo.cc:21:20: error: 'cnt' was not declared in this scope; did you mean 'int'?
   21 |                 if(cnt>=3&&sum>2*maxn)
      |                    ^~~
      |                    int
/in/foo.cc:21:28: error: 'sum' was not declared in this scope
   21 |                 if(cnt>=3&&sum>2*maxn)
      |                            ^~~
/in/foo.cc:21:34: error: 'maxn' was not declared in this scope; did you mean 'main'?
   21 |                 if(cnt>=3&&sum>2*maxn)
      |                                  ^~~~
      |                                  main

信息

递交者
类型
递交
题目
P2990 多边形
语言
C++
递交时间
2025-12-14 09:01:30
评测时间
2025-12-14 09:01:30
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes