/ Vijos /

记录详情

Wrong Answer

/in/foo.cc: In function 'int main()':
/in/foo.cc:9:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(i=0;i<s.length();i++)
          ~^~~~~~~~~~~
/in/foo.cc:12:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(i=0;i<s.length();i++)
          ~^~~~~~~~~~~
/in/foo.cc:15:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(i=0;s[i]!='='&&i<=s.length();i++)
                     ~^~~~~~~~~~~~
/in/foo.cc:20:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    for(j=i+1;j<s.length()&&s[j]>=48&&s[j]<=57;j++)
              ~^~~~~~~~~~~
/in/foo.cc:22:8: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    if(j<s.length()&&s[j]==x)
       ~^~~~~~~~~~~
/in/foo.cc:30:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    for(j=i;j<s.length()&&s[j]>=48&&s[j]<=57;j++)
            ~^~~~~~~~~~~
/in/foo.cc:32:8: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    if(j<s.length()&&s[j]==x)
       ~^~~~~~~~~~~
/in/foo.cc:40:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    for(j=i+1;j<s.length()&&s[j]>=48&&s[j]<=57;j++)
              ~^~~~~~~~~~~
/in/foo.cc:42:8: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    if(j<s.length()&&s[j]==x)
       ~^~~~~~~~~~~
/in/foo.cc:49:8: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(;i<s.length();i++)
       ~^~~~~~~~~~~
/in/foo.cc:54:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    for(j=i+1;j<s.length()&&s[j]>=48&&s[j]<=57;j++)
              ~^~~~~~~~~~~
/in/foo.cc:56:8: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    if(j<s.length()&&s[j]==x)
       ~^~~~~~~~~~~
/in/foo.cc:64:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    for(j=i;j<s.length()&&s[j]>=48&&s[j]<=57;j++)
            ~^~~~~~~~~~~
/in/foo.cc:66:8: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    if(j<s.length()&&s[j]==x)
       ~^~~~~~~~~~~
/in/foo.cc:74:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    for(j=i+1;j<s.length()&&s[j]>=48&&s[j]<=57;j++)
              ~^~~~~~~~~~~
/in/foo.cc:76:8: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    if(j<s.length()&&s[j]==x)
       ~^~~~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 1ms 196.0 KiB
#2 Accepted 1ms 208.0 KiB
#3 Accepted 1ms 200.0 KiB
#4 Accepted 1ms 204.0 KiB
#5 Wrong Answer 1ms 200.0 KiB

信息

递交者
类型
递交
题目
P1344 计算器的改良
语言
C++
递交时间
2019-12-25 18:54:40
评测时间
2019-12-25 18:54:40
评测机
分数
83
总耗时
8ms
峰值内存
208.0 KiB