/ OPS /

记录详情

Runtime Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:14:21: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
   14 |   for (int i = 0; i <= strlen(c) - 1; i++) {
      |                   ~~^~~~~~~~~~~~~~~~
/in/foo.cc:24:10: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
   24 |    if (i == strlen(c) - 1) temp[x][y] = '\0';
      |        ~~^~~~~~~~~~~~~~~~
/in/foo.cc:32:22: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
   32 |    for (int j = 0; j <= strlen(temp[i]) - 1; j++) {
      |                    ~~^~~~~~~~~~~~~~~~~~~~~~
/in/foo.cc:40:7: warning: 'num' may be used uninitialized in this function [-Wmaybe-uninitialized]
   40 |   int num;
      |       ^~~
# 状态 耗时 内存占用
#1 Runtime Error 5ms 1.348 MiB

信息

递交者
类型
递交
题目
P1462 千年老二
语言
C++
递交时间
2024-03-10 00:46:28
评测时间
2024-03-10 00:46:28
评测机
分数
0
总耗时
5ms
峰值内存
1.348 MiB