/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'int main()':
/in/foo.cc:15:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   15 |         for(int i = 1; i <= s2.length(); i++)
      |                        ~~^~~~~~~~~~~~~~
/in/foo.cc:16:34: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   16 |                 for(int j = 1; j <= s1.length(); j++) c[i + j - 1] += a[j] * b[i];
      |                                ~~^~~~~~~~~~~~~~
/in/foo.cc:17:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   17 |         for(int i = 1; i < s1.length() + s2.length(); i++)
      |                        ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.cc:14:13: warning: unused variable 't' [-Wunused-variable]
   14 |         int t = 0;
      |             ^
# 状态 耗时 内存占用
#1 Accepted 2ms 448.0 KiB
#2 Accepted 2ms 484.0 KiB
#3 Accepted 3ms 532.0 KiB
#4 Accepted 64ms 740.0 KiB

信息

递交者
类型
递交
题目
P1040 高精度乘法
语言
C++
递交时间
2026-02-07 11:18:52
评测时间
2026-02-07 11:18:52
评测机
分数
100
总耗时
71ms
峰值内存
740.0 KiB