Compile Error
foo.cc: In function 'int main()': foo.cc:8:15: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] 8 | for(int i=0;i<strlen(xm);i++) | ~^~~~~~~~~~~ foo.cc:9:3: error: 'sun' was not declared in this scope; did you mean 'sum'? 9 | sun+=(xm[i]) | ^~~ | sum foo.cc:7:6: warning: unused variable 'sum' [-Wunused-variable] 7 | int sum=0; | ^~~
[Hydro](https://hydro.ac)提供评测服务
信息
- 递交者
- 类型
- 递交
- 题目
- P1054 夏令营旗手
- 语言
- C++
- 递交时间
- 2022-04-18 18:08:34
- 评测时间
- 2022-04-18 18:08:34
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes