记录详情

Accepted

foo.cc: In function 'void solve(char*, char*)':
foo.cc:12:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(i=0;i<strlen(s);i++)
             ~^~~~~~~~~~
foo.cc:31:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(j=0;j<strlen(s);j++)
          ~^~~~~~~~~~
foo.cc:11:10: warning: unused variable 'k' [-Wunused-variable]
  int i,j,k;
          ^
foo.cc: In function 'int main()':
foo.cc:45:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%s",s);
     ~~~~~^~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 1ms 340.0 KiB

信息

递交者
类型
递交
题目
P1041 函数2(字符串1)
比赛
周末测试
语言
C++
递交时间
2021-11-03 21:15:41
评测时间
2021-11-03 21:15:41
评测机
分数
10
总耗时
1ms
峰值内存
340.0 KiB