Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:9:22: error: 'a' was not declared in this scope
    9 |                 cin>>a;
      |                      ^
/in/foo.cc:11:17: error: 'sum' was not declared in this scope; did you mean 'asum'?
   11 |                 sum++;
      |                 ^~~
      |                 asum
/in/foo.cc:13:23: error: 'sum' was not declared in this scope; did you mean 'asum'?
   13 |                 cout<<sum;
      |                       ^~~
      |                       asum
/in/foo.cc:5:15: warning: unused variable 'asum' [-Wunused-variable]
    5 |         int n,asum=0;
      |               ^~~~

信息

递交者
类型
递交
题目
P1026 C8 最大值的出现次数
语言
C++
递交时间
2025-02-17 20:08:39
评测时间
2025-02-17 20:08:39
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes