/ Vijos /

记录详情

Compile Error

foo.cc: In function 'std::__cxx11::string repeat(std::__cxx11::string)':
foo.cc:8:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(int i=0;i<s.size();i++){
                 ~^~~~~~~~~
foo.cc:12:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for(int i=0;i<temp.size();i++){
                     ~^~~~~~~~~~~~
foo.cc:17:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for(int i=0;i<temp.size();i++){
                     ~^~~~~~~~~~~~
foo.cc: In function 'std::__cxx11::string Get_str(int)':
foo.cc:28:74: error: return-statement with no value, in function returning 'std::__cxx11::string {aka std::__cxx11::basic_string<char>}' [-fpermissive]
     if(!((isdigit(begin)&&isdigit(end))||(islower(begin)&&islower(end))))return;
                                                                          ^~~~~~
foo.cc: In function 'int main()':
foo.cc:40:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(int i=0;i<s.size();i++){
                 ~^~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1379 字符串的展开
语言
C++
递交时间
2021-07-18 16:35:14
评测时间
2021-07-18 16:35:14
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes