记录详情

Runtime Error

/in/foo.cc: In function 'std::__cxx11::string gjd(std::__cxx11::string, std::__cxx11::string)':
/in/foo.cc:22:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i=0; i<a.length(); i++) {
               ~^~~~~~~~~~~
/in/foo.cc:25:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i=0; i<b.length(); i++) {
               ~^~~~~~~~~~~
/in/foo.cc:45:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(start=0; start<num.size(); start++) {
               ~~~~~^~~~~~~~~~~
/in/foo.cc:49:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i=start; i<num.size(); i++) {
                   ~^~~~~~~~~~~
/in/foo.cc: In function 'std::__cxx11::string gjd2(std::__cxx11::string, std::__cxx11::string)':
/in/foo.cc:73:7: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   if(i<a1.size()) c +=a1[i];
      ~^~~~~~~~~~
/in/foo.cc:74:7: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   if(i<b1.size()) c +=b1[i];
      ~^~~~~~~~~~
/in/foo.cc: In function 'std::__cxx11::string gjd(std::__cxx11::string, std::__cxx11::string)':
/in/foo.cc:29:6: warning: 'start' may be used uninitialized in this function [-Wmaybe-uninitialized]
  int start;
      ^~~~~
# 状态 耗时 内存占用
#1 Accepted 3ms 348.0 KiB
#2 Accepted 3ms 380.0 KiB
#3 Accepted 4ms 372.0 KiB
#4 Runtime Error 3ms 364.0 KiB
#5 Runtime Error 4ms 352.0 KiB
#6 Runtime Error 5ms 256.0 KiB
#7 Runtime Error 7ms 344.0 KiB
#8 Runtime Error 5ms 372.0 KiB
#9 Runtime Error 5ms 336.0 KiB
#10 Accepted 2ms 256.0 KiB

信息

递交者
类型
递交
题目
汉诺双塔
语言
C++
递交时间
2018-05-10 12:17:31
评测时间
2018-05-10 12:17:32
评测机
分数
40
总耗时
44ms
峰值内存
380.0 KiB