/ Vijos /

记录详情

Wrong Answer

/in/foo.cc: In function 'bool isPalindromic(std::__cxx11::string)':
/in/foo.cc:69:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (i = 0; i < (unsigned int)(str.length() + 1 / 2); i++)
                 ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.cc: In function 'int nToTen(std::__cxx11::string, int)':
/in/foo.cc:102:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (i = 0; i < (unsigned int)(overN.length()); i++)
                 ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.cc: In function 'int addOverturn(int)':
/in/foo.cc:87:13: warning: 'res' may be used uninitialized in this function [-Wmaybe-uninitialized]
     if (num + res > 100)
         ~~~~^~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:87:13: warning: 'res' may be used uninitialized in this function [-Wmaybe-uninitialized]
     if (num + res > 100)
         ~~~~^~~~~
/in/foo.cc:80:9: note: 'res' was declared here
     int res, tmp;
         ^~~
/in/foo.cc:87:13: warning: 'res' may be used uninitialized in this function [-Wmaybe-uninitialized]
     if (num + res > 100)
         ~~~~^~~~~
/in/foo.cc:80:9: note: 'res' was declared here
     int res, tmp;
         ^~~
# 状态 耗时 内存占用
#1 Accepted 1ms 204.0 KiB
#2 Wrong Answer 2ms 204.0 KiB
#3 Wrong Answer 1ms 204.0 KiB
#4 Wrong Answer 1ms 204.0 KiB

信息

递交者
类型
递交
题目
P1304 回文数
语言
C++
递交时间
2019-03-16 15:52:09
评测时间
2019-03-16 15:52:09
评测机
分数
25
总耗时
7ms
峰值内存
204.0 KiB