Wrong Answer

foo.cc: In function ‘void get(std::string, int*)’:
foo.cc:7:22: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
    7 |         for(int i=1;i<=n.size();i++)
      |                     ~^~~~~~~~~~
foo.cc: In function ‘int main()’:
foo.cc:22:17: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
   22 |                 if(c[i]>9)c[i+1]=1;c[i]%=10;
      |                 ^~
foo.cc:22:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
   22 |                 if(c[i]>9)c[i+1]=1;c[i]%=10;
      |                                    ^
# 状态 耗时 内存占用
#1 Wrong Answer Read 190, expect 200. 2ms 556.0 KiB
#2 Accepted 2ms 764.0 KiB
#3 Wrong Answer Read 62, expect 72. 2ms 536.0 KiB
#4 Wrong Answer Standard answer longer than user output. 2ms 536.0 KiB
#5 Wrong Answer Read 9000000000000000..., expect 1101111111111111.... 2ms 536.0 KiB

信息

递交者
类型
递交
比赛
2024.7.16暑期高级1班练习
语言
C++
递交时间
2024-07-17 14:13:53
评测时间
2024-07-17 14:13:53
评测机
分数
20
总耗时
13ms
峰值内存
764.0 KiB