/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'std::__cxx11::string repeat(std::__cxx11::string)':
/in/foo.cc:8:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(int i=0;i<s.size();i++){
                 ~^~~~~~~~~
/in/foo.cc:12:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for(int i=0;i<temp.size();i++){
                     ~^~~~~~~~~~~~
/in/foo.cc:17:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for(int i=0;i<temp.size();i++){
                     ~^~~~~~~~~~~~
/in/foo.cc: In function 'std::__cxx11::string Get_str(int)':
/in/foo.cc:28:73: error: expected ')' before 'return'
     if(!((isdigit(begin)&&isdigit(end))||(islower(begin)&&islower(end)))return;
                                                                         ^~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:40:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(int i=0;i<s.size();i++){
                 ~^~~~~~~~~

信息

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