记录详情

Compile Error

/in/foo.cc: In function 'std::__cxx11::string standard(std::__cxx11::string)':
/in/foo.cc:8:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  if (dot == 0 || dot == s.length() - 1)return "ERROR";
                  ~~~~^~~~~~~~~~~~~~~~~
/in/foo.cc:9:35: error: 'count' was not declared in this scope
  if (count(s.begin(), s.end(), '.') > 1)return "ERROR";
                                   ^
/in/foo.cc:10:35: error: 'count' was not declared in this scope
  if (count(s.begin(), s.end(), '0') == s.length())return "0";
                                   ^

信息

递交者
类型
递交
题目
数字化简
语言
C++
递交时间
2018-03-25 10:46:24
评测时间
2018-03-25 19:34:04
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes