记录详情

Accepted

foo.cc: In function 'void insert(char*)':
foo.cc:26:34: warning: array subscript has type 'char' [-Wchar-subscripts]
   26 |                         s[k+1]=s[k];
      |                                  ^
foo.cc:27:19: warning: array subscript has type 'char' [-Wchar-subscripts]
   27 |                 s[j]=',';
      |                   ^
foo.cc: In function 'int main()':
foo.cc:38:22: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
   38 |         for(int i=0;i<strlen(s);i++)
      |                     ~^~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 1ms 256.0 KiB
#2 Accepted 1ms 256.0 KiB
#3 Accepted 1ms 256.0 KiB
#4 Accepted 1ms 384.0 KiB
#5 Accepted 1ms 256.0 KiB

信息

递交者
类型
递交
题目
9-1 改错题
语言
C++
递交时间
2022-08-22 19:19:57
评测时间
2022-08-22 19:19:57
评测机
分数
100
总耗时
7ms
峰值内存
384.0 KiB