记录详情

Compile Error

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

信息

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