Compile Error
foo.cc: In function ‘int converts(std::string, int*)’:
foo.cc:8:22: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
8 | for(int i=1;i<=s.size();i++)
| ~^~~~~~~~~~
foo.cc: In function ‘int main()’:
foo.cc:34:39: error: expected ‘;’ before ‘;’
34 | while(len>1&&ans[len]==0)len--;
| ^~
| ;
信息
- 递交者
- 类型
- 递交
- 题目
- P1939 1.6.10大整数加法
- 语言
- C++
- 递交时间
- 2026-02-10 10:05:55
- 评测时间
- 2026-02-10 10:05:55
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes