记录详情

Compile Error

/in/foo.cc: In function 'void SetRegValue(std::__cxx11::string, std::__cxx11::string)':
/in/foo.cc:36:16: error: return-statement with a value, in function returning 'void' [-fpermissive]
         return 0;
                ^
/in/foo.cc: In function 'void Sepr(std::__cxx11::string, std::__cxx11::string&, std::__cxx11::string&, std::__cxx11::string&)':
/in/foo.cc:120:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(i = 0; i < s.length(); i++) {
             ~~^~~~~~~~~~~~
/in/foo.cc:127:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   while(i < s.length()) a += s[i++];
         ~~^~~~~~~~~~~~
/in/foo.cc:134:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   while(i < s.length()) b += s[i++];
         ~~^~~~~~~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:141:9: warning: unused variable 'line' [-Wunused-variable]
     int line = 0;
         ^~~~

信息

递交者
类型
递交
语言
C++
递交时间
2019-01-31 20:07:19
评测时间
2019-01-31 20:07:19
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes