记录详情

Accepted

/in/foo.cc: In function 'int main()':
/in/foo.cc:41:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i=0;i<x.length();i++)
              ~^~~~~~~~~~~
/in/foo.cc:47:8: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  if(tar>=x.length()-1){
     ~~~^~~~~~~~~~~~~~
/in/foo.cc:49:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for(int i=1;i<=tar-x.length()+1;i++)
               ~^~~~~~~~~~~~~~~~~~
/in/foo.cc:46:14: warning: 'pos' may be used uninitialized in this function [-Wmaybe-uninitialized]
  int tar=pos+k;//保留到的位数 
              ^
# 状态 耗时 内存占用
#1 Accepted 1ms 376.0 KiB
#2 Accepted 1ms 420.0 KiB
#3 Accepted 1ms 376.0 KiB
#4 Accepted 1ms 340.0 KiB

信息

递交者
类型
递交
题目
P1305 B. Round Decimal
比赛
2021年互联网创新创业科技节程序设计大赛
语言
C++
递交时间
2021-12-23 19:30:35
评测时间
2021-12-23 19:30:35
评测机
分数
100
总耗时
5ms
峰值内存
420.0 KiB