/ Vijos /

记录详情

Accepted

/in/foo.cc: In member function 'int M::SetNumber(std::__cxx11::string)':
/in/foo.cc:28:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int i = 0; i < s.length(); i++) {
                     ~~^~~~~~~~~~~~
/in/foo.cc: In member function 'M M::operator+(const M&)':
/in/foo.cc:80:27: warning: iteration 99 invokes undefined behavior [-Waggressive-loop-optimizations]
         ans.number[i + 1] = ans.number[i] / this->base;
         ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.cc:77:23: note: within this loop
     for (int i = 0; i < 100 ; i++) {
                     ~~^~~~~
# 状态 耗时 内存占用
#1 Accepted 1ms 212.0 KiB
#2 Accepted 1ms 228.0 KiB
#3 Accepted 1ms 220.0 KiB
#4 Accepted 1ms 228.0 KiB

信息

递交者
类型
递交
题目
P1304 回文数
语言
C++
递交时间
2020-09-03 20:36:15
评测时间
2020-09-03 20:36:15
评测机
分数
100
总耗时
6ms
峰值内存
228.0 KiB