/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'long long int exps::check(long long int, std::__cxx11::string)':
/in/foo.cc:133:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for (i=1;i<st.length();)
            ~^~~~~~~~~~~~
/in/foo.cc:157:13: warning: array subscript has type 'char' [-Wchar-subscripts]
    if (mp[op][st[i]]=='>')
             ^
/in/foo.cc:167:18: warning: array subscript has type 'char' [-Wchar-subscripts]
    else if (mp[op][st[i]]=='<')
                  ^
/in/foo.cc:172:18: warning: array subscript has type 'char' [-Wchar-subscripts]
    else if (mp[op][st[i]]=='=')
                  ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:189:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for (i=0;i<s.size();i++) if (s[i]!=' ') st.push_back(s[i]);
           ~^~~~~~~~~
/in/foo.cc:198:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for (j=0;j<t.size();j++) if (t[j]!=' ') st.push_back(t[j]);
            ~^~~~~~~~~
/in/foo.cc: In function 'long long int exps::calc(long long int, long long int, char, long long int)':
/in/foo.cc:34:2: warning: control reaches end of non-void function [-Wreturn-type]
  }
  ^
# 状态 耗时 内存占用
#1 Accepted 6ms 384.0 KiB
#2 Accepted 4ms 332.0 KiB
#3 Accepted 5ms 348.0 KiB
#4 Accepted 2ms 384.0 KiB
#5 Accepted 2ms 336.0 KiB
#6 Accepted 4ms 376.0 KiB
#7 Accepted 6ms 384.0 KiB
#8 Accepted 4ms 376.0 KiB
#9 Accepted 5ms 332.0 KiB
#10 Accepted 4ms 364.0 KiB

信息

递交者
类型
递交
题目
P1003 等价表达式
语言
C++
递交时间
2018-03-14 21:45:40
评测时间
2018-03-14 21:45:40
评测机
分数
100
总耗时
45ms
峰值内存
384.0 KiB